Documentation
¶
Index ¶
- type Connect
- func (c Connect) Begin() (tx driver.Tx, err error)
- func (c Connect) BeginTx(ctx context.Context, _ driver.TxOptions) (tx driver.Tx, err error)
- func (c Connect) CheckNamedValue(nv *driver.NamedValue) error
- func (c Connect) Close() error
- func (c Connect) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (res driver.Result, err error)
- func (c Connect) IsValid() bool
- func (c Connect) Prepare(query string) (stmt driver.Stmt, err error)
- func (c Connect) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)
- func (c Connect) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (rows driver.Rows, err error)
- func (c Connect) ResetSession(_ context.Context) (err error)
- type Connector
- type Driver
- type Result
- type Rows
- func (r *Rows) Close() error
- func (r *Rows) ColumnTypeDatabaseTypeName(index int) string
- func (r *Rows) ColumnTypeLength(index int) (length int64, ok bool)
- func (r *Rows) ColumnTypeNullable(_ int) (nullable, ok bool)
- func (r *Rows) ColumnTypePrecisionScale(_ int) (precision, scale int64, ok bool)
- func (r *Rows) ColumnTypeScanType(index int) reflect.Type
- func (r *Rows) Columns() (cols []string)
- func (r *Rows) HasNextResultSet() bool
- func (r *Rows) Next(dest []driver.Value) error
- func (r *Rows) NextResultSet() error
- type Statement
- func (s Statement) Close() error
- func (s Statement) Exec(args []driver.Value) (driver.Result, error)
- func (s Statement) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
- func (s Statement) NumInput() int
- func (s Statement) Query(args []driver.Value) (driver.Rows, error)
- func (s Statement) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connect ¶
type Connect struct {
// contains filtered or unexported fields
}
func NewConnect ¶
func (Connect) CheckNamedValue ¶
func (c Connect) CheckNamedValue(nv *driver.NamedValue) error
func (Connect) ExecContext ¶
func (Connect) PrepareContext ¶
func (Connect) QueryContext ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
type Result ¶
type Result struct {
client.BindExecResponse
}
func (Result) LastInsertId ¶
func (Result) RowsAffected ¶
type Rows ¶
type Rows struct {
// contains filtered or unexported fields
}
func (*Rows) ColumnTypeDatabaseTypeName ¶
func (*Rows) ColumnTypeNullable ¶
func (*Rows) ColumnTypePrecisionScale ¶
func (*Rows) HasNextResultSet ¶
func (*Rows) NextResultSet ¶
type Statement ¶
type Statement struct { Id string SQL string Response client.ParseResponse // contains filtered or unexported fields }
func (Statement) ExecContext ¶
func (Statement) QueryContext ¶
Click to show internal directories.
Click to hide internal directories.