Documentation ¶ Index ¶ func New(database *Database, debug bool) (*gorm.DB, error) type Database func (database *Database) MySQL() (*gorm.DB, error) func (database *Database) PostgreSQL() (*gorm.DB, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(database *Database, debug bool) (*gorm.DB, error) Types ¶ type Database ¶ type Database struct { Connection string Host string Port string Username string Password string Name string SSLMode string ParseTime string Charset string Timezone string } func (*Database) MySQL ¶ func (database *Database) MySQL() (*gorm.DB, error) func (*Database) PostgreSQL ¶ func (database *Database) PostgreSQL() (*gorm.DB, error) Source Files ¶ View all Source files main.go Directories ¶ Show internal Expand all Path Synopsis migration seeder Click to show internal directories. Click to hide internal directories.