driver

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string) gomodel.Driver

func Register

func Register(name string, driver gomodel.Driver) bool

Types

type MySQL

type MySQL string

func (MySQL) DSN

func (MySQL) DSN(host, port, username, password, dbname string, cfg map[string]string) string

func (MySQL) DuplicateKey

func (MySQL) DuplicateKey(err error) string

func (MySQL) ForeignKey

func (MySQL) ForeignKey(err error) string

func (MySQL) ParamLimit

func (MySQL) ParamLimit(start, count int64) (int64, int64)

func (MySQL) Prepare

func (MySQL) Prepare(sql string) string

func (MySQL) PrimaryKey

func (MySQL) PrimaryKey() string

func (MySQL) SQLLimit

func (MySQL) SQLLimit() string

func (MySQL) String

func (m MySQL) String() string

type Postgres

type Postgres string

func (Postgres) DSN

func (Postgres) DSN(host, port, username, password, dbname string, cfg map[string]string) string

func (Postgres) DuplicateKey

func (p Postgres) DuplicateKey(err error) string

func (Postgres) ForeignKey

func (p Postgres) ForeignKey(err error) string

func (Postgres) ParamLimit

func (Postgres) ParamLimit(start, count int64) (int64, int64)

func (Postgres) Prepare

func (Postgres) Prepare(sql string) string

func (Postgres) PrimaryKey

func (Postgres) PrimaryKey() string

func (Postgres) SQLLimit

func (Postgres) SQLLimit() string

func (Postgres) String

func (p Postgres) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL