Documentation
¶
Index ¶
- func ConfigDatabaseForTesting() *gorm.DB
- func ConnectPostgres(cfg DBConfig) (*gorm.DB, error)
- func CreateDefaultTenantAndDatabase(db *gorm.DB) string
- func CreateTestTables(db *gorm.DB)
- func CtxWithTransaction(ctx context.Context, tx *gorm.DB) context.Context
- func GetDB(ctx context.Context) *gorm.DB
- func NewTxImpl() *txImpl
- func SetGlobalDB(db *gorm.DB)
- type DBConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestTables ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.