Documentation ¶
Overview ¶
Package orm provides `GORM` helpers for the creation, migration and access on the project's database
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFilters ¶
ParseFilters parses the filter and adds the where condition to the transaction
Types ¶
type ORM ¶
ORM struct to holds the gorm pointer to db
func Factory ¶
func Factory(cfg *utils.ServerConfig) (*ORM, error)
Factory creates a db connection with the selected dialect and connection string
func (*ORM) FindUserByAPIKey ¶
FindUserByAPIKey finds the user that is related to the API key
func (*ORM) FindUserByJWT ¶
FindUserByJWT finds the user that is related to the APIKey token
Click to show internal directories.
Click to hide internal directories.