Documentation ¶
Index ¶
- Constants
- Variables
- func WithQueryMode(ctx context.Context, mode QueryMode) context.Context
- func WithTxControl(ctx context.Context, txc *table.TransactionControl) context.Context
- func WithTxControlHook(ctx context.Context, hook txControlHook) context.Context
- type Conn
- func (c *Conn) BeginTx(ctx context.Context, txOptions driver.TxOptions) (iface.Tx, error)
- func (c *Conn) CheckNamedValue(*driver.NamedValue) error
- func (c *Conn) Close() (finalErr error)
- func (c *Conn) Exec(ctx context.Context, sql string, params *params.Params) (result driver.Result, err error)
- func (c *Conn) Explain(ctx context.Context, sql string, _ *params.Params) (ast string, plan string, err error)
- func (c *Conn) ID() string
- func (c *Conn) IsValid() bool
- func (c *Conn) Ping(ctx context.Context) (finalErr error)
- func (c *Conn) Query(ctx context.Context, sql string, params *params.Params) (result driver.RowsNextResultSet, finalErr error)
- type Option
- func WithDataOpts(dataOpts ...options.ExecuteDataQueryOption) Option
- func WithDefaultQueryMode(mode QueryMode) Option
- func WithDefaultTxControl(defaultTxControl *table.TransactionControl) Option
- func WithFakeTxModes(modes ...QueryMode) Option
- func WithIdleThreshold(idleThreshold time.Duration) Option
- func WithOnClose(onCLose func()) Option
- func WithScanOpts(scanOpts ...options.ExecuteScanQueryOption) Option
- type Parent
- type QueryMode
Constants ¶
View Source
const ( UnknownQueryMode = QueryMode(iota) DataQueryMode ScanQueryMode SchemeQueryMode ScriptingQueryMode )
Variables ¶
View Source
var ( ErrUnsupported = driver.ErrSkip ErrWrongQueryMode = errors.New("wrong query mode") )
Functions ¶
func WithTxControl ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) CheckNamedValue ¶
func (c *Conn) CheckNamedValue(*driver.NamedValue) error
type Option ¶
type Option func(*Conn)
func WithDataOpts ¶
func WithDataOpts(dataOpts ...options.ExecuteDataQueryOption) Option
func WithDefaultQueryMode ¶
func WithDefaultTxControl ¶
func WithDefaultTxControl(defaultTxControl *table.TransactionControl) Option
func WithFakeTxModes ¶
func WithIdleThreshold ¶
func WithOnClose ¶
func WithOnClose(onCLose func()) Option
func WithScanOpts ¶
func WithScanOpts(scanOpts ...options.ExecuteScanQueryOption) Option
Source Files ¶
Click to show internal directories.
Click to hide internal directories.