Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultDmDSNParser = &DmDSNParser{}
)
View Source
var (
DefaultMysqlDSNParser = &MysqlDSNParser{}
)
View Source
var (
DefaultPostgresDSNParser = &PostgresDSNParser{}
)
Functions ¶
This section is empty.
Types ¶
type DSN ¶
type DSN struct { User string // Username Password string // Password (requires User) Net string // Network type Addr string // Network address (requires Net) DBName string // Database name Params map[string]string // Connection parameters }
DSN ...
type DmDSNParser ¶ added in v0.3.0
type DmDSNParser struct { }
func (*DmDSNParser) GetDialector ¶ added in v0.3.0
func (m *DmDSNParser) GetDialector(dsn string) gorm.Dialector
type MysqlDSNParser ¶
type MysqlDSNParser struct { }
func (*MysqlDSNParser) GetDialector ¶
func (m *MysqlDSNParser) GetDialector(dsn string) gorm.Dialector
type PostgresDSNParser ¶
type PostgresDSNParser struct { }
func (*PostgresDSNParser) GetDialector ¶
func (p *PostgresDSNParser) GetDialector(dsn string) gorm.Dialector
Click to show internal directories.
Click to hide internal directories.