Documentation ¶ Index ¶ type Driver type Mysql func (d *Mysql) Connect(host string, port int, user string, password string, dbname string, debug bool) *gorm.DB type PostgreSql func (d *PostgreSql) Connect(host string, port int, user string, password string, dbname string, debug bool) *gorm.DB Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Driver ¶ type Driver interface { Connect(host string, port int, user string, password string, dbname string, debug bool) *gorm.DB } type Mysql ¶ type Mysql struct { } func (*Mysql) Connect ¶ func (d *Mysql) Connect(host string, port int, user string, password string, dbname string, debug bool) *gorm.DB type PostgreSql ¶ type PostgreSql struct { } func (*PostgreSql) Connect ¶ func (d *PostgreSql) Connect(host string, port int, user string, password string, dbname string, debug bool) *gorm.DB Source Files ¶ View all Source files driver.go mysql.go postgresql.go Click to show internal directories. Click to hide internal directories.