Documentation ¶ Index ¶ func New(dialect string, dsn string, config *gorm.Config) (*gorm.DB, error) func NewLogger(level string) *dlogger func NewMySQL(dsn string, config *gorm.Config) (*gorm.DB, error) func NewSQLite(file string, config *gorm.Config) (*gorm.DB, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(dialect string, dsn string, config *gorm.Config) (*gorm.DB, error) New creates a new database connection func NewLogger ¶ added in v0.2.0 func NewLogger(level string) *dlogger func NewMySQL ¶ func NewMySQL(dsn string, config *gorm.Config) (*gorm.DB, error) NewMySQL Creates a new MySQL Database Connection func NewSQLite ¶ func NewSQLite(file string, config *gorm.Config) (*gorm.DB, error) NewSQLite -- Types ¶ This section is empty. Source Files ¶ View all Source files database.go logger.go Click to show internal directories. Click to hide internal directories.