 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- func WithQueryMode(ctx context.Context, m 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) Begin() (driver.Tx, error)
- func (c *Conn) BeginTx(ctx context.Context, txOptions driver.TxOptions) (driver.Tx, error)
- func (c *Conn) CheckNamedValue(*driver.NamedValue) error
- func (c *Conn) Close() (finalErr error)
- func (c *Conn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (_ driver.Result, _ error)
- func (c *Conn) ID() string
- func (c *Conn) IsValid() bool
- func (c *Conn) LastUsage() time.Time
- func (c *Conn) Ping(ctx context.Context) (finalErr error)
- func (c *Conn) Prepare(string) (driver.Stmt, error)
- func (c *Conn) PrepareContext(ctx context.Context, query string) (_ driver.Stmt, finalErr error)
- func (c *Conn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (_ driver.Rows, _ error)
- func (c *Conn) WithDataQueryOptions(ctx context.Context, opts ...options.ExecuteDataQueryOption) context.Context
- func (c *Conn) WithScanQueryOptions(ctx context.Context, opts ...options.ExecuteScanQueryOption) context.Context
 
- 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 ExplainQueryMode ScanQueryMode SchemeQueryMode ScriptingQueryMode DefaultQueryMode = DataQueryMode )
Variables ¶
      View Source
      
  
var (
	ErrUnsupported = driver.ErrSkip
)
    Functions ¶
func WithQueryMode ¶
WithQueryMode returns a copy of context with given QueryMode
func WithTxControl ¶
Types ¶
type Conn ¶
type Conn struct {
	// contains filtered or unexported fields
}
    func (*Conn) CheckNamedValue ¶
func (c *Conn) CheckNamedValue(*driver.NamedValue) error
func (*Conn) ExecContext ¶
func (*Conn) PrepareContext ¶
func (*Conn) QueryContext ¶
func (*Conn) WithDataQueryOptions ¶
func (*Conn) WithScanQueryOptions ¶
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
      ¶
      Source Files
      ¶
    
   Click to show internal directories. 
   Click to hide internal directories.