Source File
driver.go
Belonging Package
database/sql/driver
package driver
import (
)
type Value interface{}
Driver() Driver
}
var ErrBadConn = errors.New("driver: bad connection")
type ExecerContext interface {
ExecContext(ctx context.Context, query string, args []NamedValue) (Result, error)
}
type QueryerContext interface {
QueryContext(ctx context.Context, query string, args []NamedValue) (Rows, error)
}
Close() error
type IsolationLevel int
type TxOptions struct {
Isolation IsolationLevel
ReadOnly bool
}
IsValid() bool
}
Close() error
NumInput() int
ExecContext(ctx context.Context, args []NamedValue) (Result, error)
}
QueryContext(ctx context.Context, args []NamedValue) (Rows, error)
}
var ErrRemoveArgument = errors.New("driver: remove argument from query")
CheckNamedValue(*NamedValue) error
}
ColumnConverter(idx int) ValueConverter
}
Columns() []string
Close() error
type RowsNextResultSet interface {
Rows
HasNextResultSet() bool
NextResultSet() error
}
type RowsColumnTypeScanType interface {
Rows
ColumnTypeScanType(index int) reflect.Type
}
type RowsColumnTypeDatabaseTypeName interface {
Rows
ColumnTypeDatabaseTypeName(index int) string
}
type RowsColumnTypeLength interface {
Rows
ColumnTypeLength(index int) (length int64, ok bool)
}
type RowsColumnTypeNullable interface {
Rows
ColumnTypeNullable(index int) (nullable, ok bool)
}
type RowsColumnTypePrecisionScale interface {
Rows
ColumnTypePrecisionScale(index int) (precision, scale int64, ok bool)
}
type RowsAffected int64
var _ Result = RowsAffected(0)
func (RowsAffected) () (int64, error) {
return 0, errors.New("LastInsertId is not supported by this driver")
}
func ( RowsAffected) () (int64, error) {
return int64(), nil
}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |