Documentation ¶
Index ¶
- Variables
- func BatchInsertRow(inputs ...driver.Value) []driver.Value
- func Join(columns ...string) string
- func Open(drv driver.Driver, dsn string) (sql.Conn, error)
- func Translate(sql string, columns ...interface{}) sql.Translated
- func Tuple(vals ...interface{}) string
- type Batch
- func (batch *Batch) Columns() []string
- func (batch *Batch) GetInt(row int, column string) int
- func (batch *Batch) GetInt64Column(column string) []int64
- func (batch *Batch) GetString(row int, column string) string
- func (batch *Batch) GetStringColumn(column string) []string
- func (batch *Batch) Len() int
- type Conn
- func (conn *Conn) BeginTx() error
- func (conn *Conn) Close() error
- func (conn *Conn) CommitTx() error
- func (conn *Conn) Exec(translatedSql *TranslatedSql, inputs ...driver.Value) (driver.Result, error)
- func (conn *Conn) RollbackTx() error
- func (conn *Conn) Statement(translatedSql sql.Translated) sql.Stmt
- func (conn *Conn) TranslateStatement(sql string, columns ...interface{}) sql.Stmt
- type Pool
- type Rows
- func (rows *Rows) C(column string) sql.ColumnIndex
- func (rows *Rows) Close() error
- func (rows *Rows) Columns() []string
- func (rows *Rows) Get(idx sql.ColumnIndex) interface{}
- func (rows *Rows) GetByName(name string) interface{}
- func (rows *Rows) GetByteArray(idx sql.ColumnIndex) []byte
- func (rows *Rows) GetInt(idx sql.ColumnIndex) int
- func (rows *Rows) GetInt64(idx sql.ColumnIndex) int64
- func (rows *Rows) GetString(idx sql.ColumnIndex) string
- func (rows *Rows) GetTime(idx sql.ColumnIndex) time.Time
- func (rows *Rows) Next() error
- func (rows *Rows) NextBatch(batch *Batch, maxToRead int) error
- type Stmt
- type TranslatedSql
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLocation *time.Location
View Source
var TooManyConcurrentConnections = errors.New("TooManyConcurrentConnections")
Functions ¶
func Translate ¶
func Translate(sql string, columns ...interface{}) sql.Translated
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
func (*Batch) GetInt64Column ¶
func (*Batch) GetStringColumn ¶
type Conn ¶
type Conn struct { Error error // contains filtered or unexported fields }
func (*Conn) RollbackTx ¶
type Rows ¶
type Rows struct {
// contains filtered or unexported fields
}
func (*Rows) Get ¶
func (rows *Rows) Get(idx sql.ColumnIndex) interface{}
func (*Rows) GetByteArray ¶
func (rows *Rows) GetByteArray(idx sql.ColumnIndex) []byte
type TranslatedSql ¶
type TranslatedSql struct {
// contains filtered or unexported fields
}
func NewTranslatedSql ¶
Click to show internal directories.
Click to hide internal directories.