ydb

package
v6.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedInsertMethod = errors.New("unsupported insert method for ydb driver")
View Source
var ErrUnsupportedType = errors.New("unsupported value type")

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func NewDriver

func NewDriver(
	ctx context.Context,
	opts driver.Options,
) (*Driver, error)

func (*Driver) Begin

func (d *Driver) Begin(ctx context.Context, isolation config.TxIsolationLevel) (driver.Tx, error)

func (*Driver) ClassifyError

func (*Driver) ClassifyError(err error) driver.ErrorFacts

func (*Driver) Insert

func (d *Driver) Insert(
	ctx context.Context,
	req *driver.InsertRequest,
) (*stats.Query, error)

Insert runs a typed driver.InsertRequest through the ydb driver. Each worker prepares a gen.Cursor partition, adapts it to a source.RowSource, and drains it through runInsertChunk. COLUMNAR redirects to NATIVE BulkUpsert, which already uses a struct-of-arrays representation.

func (*Driver) PoolMaxConns added in v6.3.0

func (d *Driver) PoolMaxConns() int

func (*Driver) RunQuery

func (d *Driver) RunQuery(
	ctx context.Context,
	sqlStr string,
	args map[string]any,
) (*driver.QueryResult, error)

func (*Driver) Teardown

func (d *Driver) Teardown(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL