Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDbRecords ¶
func CreateDbRecords(dbClient interfaces.DbClient, records ...interface{})
func ExecSql ¶
func ExecSql(dbClient interfaces.DbClient, sqls ...string)
func TearDownDb ¶
func TearDownDb(dbResource DbResource)
Types ¶
type DbResource ¶
type DbResource struct {
// contains filtered or unexported fields
}
func SetupDb ¶
func SetupDb(migrate bool) DbResource
func (DbResource) GetDbConfig ¶
func (d DbResource) GetDbConfig() config.Db
GetDbConfig returns the db config of the session
func (DbResource) GetGormDb ¶
func (d DbResource) GetGormDb() *gorm.DB
GetGormDb creates a gorm db session
Click to show internal directories.
Click to hide internal directories.