Documentation
¶
Index ¶
- func Get(name string) gomodel.Driver
- func NewMySQL(name string) gomodel.Driver
- func NewPostgres(name string) gomodel.Driver
- func NewSQLite3(name string) gomodel.Driver
- func Register(name string, driver gomodel.Driver) bool
- func Replace(name string, driver gomodel.Driver)
- type MySQL
- func (MySQL) DSN(host, port, username, password, dbname string, cfg map[string]string) string
- func (MySQL) DuplicateKey(err error) string
- func (MySQL) ForeignKey(err error) string
- func (MySQL) ParamLimit(offset, count int) (int, int)
- func (MySQL) Prepare(sql string) string
- func (MySQL) PrimaryKey() string
- func (MySQL) SQLLimit() string
- func (m MySQL) String() string
- type PGError
- type Postgres
- func (Postgres) DSN(host, port, username, password, dbname string, cfg map[string]string) string
- func (p Postgres) DuplicateKey(err error) string
- func (p Postgres) ForeignKey(err error) string
- func (Postgres) ParamLimit(offset, count int) (int, int)
- func (p Postgres) Prepare(sql string) string
- func (Postgres) PrimaryKey() string
- func (Postgres) SQLLimit() string
- func (p Postgres) String() string
- type SQLite3
- func (SQLite3) DSN(_, _, _, _, path string, cfg map[string]string) string
- func (SQLite3) DuplicateKey(err error) string
- func (SQLite3) ForeignKey(err error) string
- func (SQLite3) ParamLimit(offset, count int) (int, int)
- func (SQLite3) Prepare(sql string) string
- func (SQLite3) PrimaryKey() string
- func (SQLite3) SQLLimit() string
- func (m SQLite3) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostgres ¶ added in v0.6.2
func NewSQLite3 ¶ added in v0.6.3
Types ¶
type MySQL ¶
type MySQL string
func (MySQL) DuplicateKey ¶
func (MySQL) ForeignKey ¶
func (MySQL) PrimaryKey ¶
type Postgres ¶
type Postgres string
func (Postgres) DuplicateKey ¶
func (Postgres) ForeignKey ¶
func (Postgres) PrimaryKey ¶
type SQLite3 ¶ added in v0.6.3
type SQLite3 string
func (SQLite3) DuplicateKey ¶ added in v0.6.3
func (SQLite3) ForeignKey ¶ added in v0.6.3
func (SQLite3) PrimaryKey ¶ added in v0.6.3
Click to show internal directories.
Click to hide internal directories.