Documentation
¶
Index ¶
- Variables
- type Driver
- func (d *Driver) Begin(ctx context.Context, isolation config.TxIsolationLevel) (driver.Tx, error)
- func (*Driver) ClassifyError(err error) driver.ErrorFacts
- func (d *Driver) Insert(ctx context.Context, req *driver.InsertRequest) (*stats.Query, error)
- func (d *Driver) RunQuery(ctx context.Context, sqlStr string, args map[string]any) (*driver.QueryResult, error)
- func (d *Driver) Teardown(ctx context.Context) error
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 (*Driver) ClassifyError ¶
func (*Driver) ClassifyError(err error) driver.ErrorFacts
func (*Driver) Insert ¶
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.
Click to show internal directories.
Click to hide internal directories.