Versions in this module Expand all Collapse all v0 v0.6.0 Jan 14, 2018 Changes in this version + func ConfigStmt(u *dburl.URL, buf *stmt.Stmt) + func ForceParams(u *dburl.URL) + func ForceQueryParameters(params []string) func(*dburl.URL) + func Lexer(u *dburl.URL) chroma.Lexer type Driver + ACC bool + AHC bool + FP func(*dburl.URL) + Syn string v0.6.0-rc4 Dec 18, 2017 v0.6.0-rc3 Nov 24, 2017 v0.6.0-rc2 Nov 9, 2017 v0.6.0-rc1 Oct 25, 2017 v0.5.0 Apr 2, 2017 Changes in this version + func CanChangePassword(u *dburl.URL) error + func ChangePassword(u *dburl.URL, db DB, user, new, old string) (string, error) + func RequirePreviousPassword(u *dburl.URL) bool + func User(u *dburl.URL, db DB) (string, error) + type DB interface + Exec func(string, ...interface{}) (sql.Result, error) + Prepare func(string) (*sql.Stmt, error) + Query func(string, ...interface{}) (*sql.Rows, error) + QueryRow func(string, ...interface{}) *sql.Row type Driver + AD bool + AMC bool + ChPw func(DB, string, string, string) error + ReqPP bool + U func(DB) (string, error) v0.4.0 Mar 29, 2017 Changes in this version + var ErrDriverNotAvailable = errors.New("driver not available") + func Available() map[string]Driver + func Columns(u *dburl.URL, rows *sql.Rows) ([]string, error) + func ConvertBytes(u *dburl.URL, buf []byte) string + func IsPasswordErr(u *dburl.URL, err error) bool + func NextResultSet(q *sql.Rows) bool + func Open(u *dburl.URL, buf *stmt.Stmt) (*sql.DB, error) + func Ping(u *dburl.URL, db *sql.DB) error + func Process(u *dburl.URL, prefix, sqlstr string) (string, string, bool, error) + func QueryExecType(prefix, sqlstr string) (string, bool) + func Register(name string, d Driver, aliases ...string) + func Registered(name string) bool + func RowsAffected(u *dburl.URL, res sql.Result) (int64, error) + func Version(u *dburl.URL, db *sql.DB) (string, error) + func WrapErr(name string, err error) error + type Driver struct + A func(sql.Result) (int64, error) + Cb func([]byte) string + Cols func(*sql.Rows) ([]string, error) + E func(error) (string, string) + EV func(error) *ErrVerbose + N string + O func(*dburl.URL) (func(string, string) (*sql.DB, error), error) + P func(string, string) (string, string, bool, error) + PwErr func(error) bool + V func(*sql.DB) (string, error) + type ErrVerbose struct + type Error struct + Driver string + Err error + func (e *Error) Error() string + func (e *Error) Verbose() *ErrVerbose v0.3.0 Mar 23, 2017 Changes in this version + var Drivers = map[string]string + var KnownDrivers = map[string]string