package conn
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/query/conn"
Index ¶
- type Conn
- func New(ctx context.Context, parent Parent, s *query.Session, opts ...Option) *Conn
- func (c *Conn) Begin() (driver.Tx, error)
- func (c *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)
- func (c *Conn) CheckNamedValue(value *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) error
- func (c *Conn) Prepare(query string) (driver.Stmt, error)
- func (c *Conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)
- func (c *Conn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
- type Option
- type Parent
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func New ¶
func (*Conn) Begin ¶
func (*Conn) BeginTx ¶
func (*Conn) CheckNamedValue ¶
func (c *Conn) CheckNamedValue(value *driver.NamedValue) error
func (*Conn) Close ¶
func (*Conn) ExecContext ¶
func (c *Conn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
func (*Conn) ID ¶
func (*Conn) IsValid ¶
func (*Conn) LastUsage ¶
func (*Conn) Ping ¶
func (*Conn) Prepare ¶
func (*Conn) PrepareContext ¶
func (*Conn) QueryContext ¶
func (c *Conn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
type Option ¶
type Option func(c *Conn)
func WithOnClose ¶
func WithOnClose(onClose func()) Option
type Parent ¶
type Parent interface { Query() *query.Client Trace() *trace.DatabaseSQL TraceRetry() *trace.Retry RetryBudget() budget.Budget Bindings() bind.Bindings Clock() clockwork.Clock }
Source Files ¶
- Version
- v3.90.1
- Published
- Nov 6, 2024
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 6 minutes ago –
Tools for package owners.