package legacy
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/xsql/legacy"
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 New(ctx context.Context, parent Parent, s table.ClosableSession, opts ...Option) *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 ¶
const ( UnknownQueryMode = QueryMode(iota) DataQueryMode ScanQueryMode SchemeQueryMode ScriptingQueryMode )
Variables ¶
Functions ¶
func WithQueryMode ¶
func WithTxControl ¶
func WithTxControlHook ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func New ¶
func (*Conn) BeginTx ¶
func (*Conn) CheckNamedValue ¶
func (c *Conn) CheckNamedValue(*driver.NamedValue) error
func (*Conn) Close ¶
func (*Conn) Exec ¶
func (c *Conn) Exec(ctx context.Context, sql string, params *params.Params) (result driver.Result, err error)
func (*Conn) Explain ¶
func (c *Conn) Explain(ctx context.Context, sql string, _ *params.Params) (ast string, plan string, err error)
func (*Conn) ID ¶
func (*Conn) IsValid ¶
func (*Conn) Ping ¶
func (*Conn) Query ¶
func (c *Conn) Query(ctx context.Context, sql string, params *params.Params) ( result driver.RowsNextResultSet, finalErr 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
type Parent ¶
type QueryMode ¶
type QueryMode int
func (QueryMode) String ¶
Source Files ¶
conn.go context.go errors.go isolation.go mode.go options.go rows.go tx.go tx_fake.go valuer.go
Directories ¶
Path | Synopsis |
---|---|
internal/xsql/legacy/badconn |
- Version
- v3.95.6
- Published
- Jan 10, 2025
- Platform
- linux/amd64
- Imports
- 23 packages
- Last checked
- 17 seconds ago –
Tools for package owners.