Documentation
¶
Index ¶
- func Get(name string) gomodel.Driver
- func Register(name string, driver gomodel.Driver) bool
- 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(start, count int64) (int64, int64)
- func (MySQL) Prepare(pool bytes2.Pool, sql string) string
- func (MySQL) PrimaryKey() string
- func (MySQL) SQLLimit() string
- func (m MySQL) String() string
- type Postgres
- func (Postgres) DSN(host, port, username, password, dbname string, cfg map[string]string) string
- func (Postgres) DuplicateKey(err error) string
- func (Postgres) ForeignKey(err error) string
- func (Postgres) ParamLimit(start, count int64) (int64, int64)
- func (Postgres) Prepare(pool bytes2.Pool, sql string) string
- func (Postgres) PrimaryKey() string
- func (Postgres) SQLLimit() string
- func (p Postgres) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.