Documentation ¶ Index ¶ Variables func New(options *Options) (db *gorm.DB, err error) type Options type Type Constants ¶ This section is empty. Variables ¶ View Source var ( ErrUnsupportedDBType = errors.New("unsupported db type") ) Functions ¶ func New ¶ func New(options *Options) (db *gorm.DB, err error) Types ¶ type Options ¶ type Options struct { Type Type Host string Username string Password string Database string MaxIdleConnections int MaxOpenConnections int MaxConnectionLifeTime time.Duration // contains filtered or unexported fields } type Type ¶ type Type int8 const ( MySQL Type = iota MSSQL ) Source Files ¶ View all Source files db.go Click to show internal directories. Click to hide internal directories.