Documentation
¶
Overview ¶
FIXME: golangci-lint nolint:gosimple,revive
Index ¶
- Variables
- func AccountOrOrg(account string, orgID string, table string) *gorm.DB
- func AccountOrOrgTx(account string, orgID string, tx *gorm.DB, table string) *gorm.DB
- func CreateDB() (*gorm.DB, error)
- func DBx(ctx context.Context) *gorm.DB
- func InitDB()
- func Org(orgID string, table string) *gorm.DB
- func OrgDB(orgID string, gormDB *gorm.DB, table string) *gorm.DB
- func OrgDBx(ctx context.Context, orgID string, gormDB *gorm.DB, table string) *gorm.DB
- func Orgx(ctx context.Context, orgID string, table string) *gorm.DB
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
DB ORM variable
Functions ¶
func AccountOrOrg ¶
AccountOrOrg returns a gorm db transaction with account or orgID filter
func AccountOrOrgTx ¶
AccountOrOrgTx returns a gorm db with account or orgID filter from a known gorm db transaction
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.