Documentation ¶ Index ¶ Variables func New(ctx context.Context, c conf.DB) (gdb *gorm.DB, err error) func NewDialect(driver conf.DBDriver, conn gorm.ConnPool) (gorm.Dialector, error) func NewMysql(ctx context.Context, c conf.DB) *gorm.DB Constants ¶ This section is empty. Variables ¶ View Source var ErrUnsupportedDriver = errors.New("unsupported database driver") View Source var ErrUnsupportedResolverType = errors.New("unsupported resolver type") Functions ¶ func New ¶ func New(ctx context.Context, c conf.DB) (gdb *gorm.DB, err error) func NewDialect ¶ func NewDialect(driver conf.DBDriver, conn gorm.ConnPool) (gorm.Dialector, error) func NewMysql ¶ func NewMysql(ctx context.Context, c conf.DB) *gorm.DB Types ¶ This section is empty. Source Files ¶ View all Source files dialect.go gorm.go provide.go Click to show internal directories. Click to hide internal directories.