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) OpenSession(ctx context.Context) (driver.Session, error)
- func (d *Driver) PoolMaxConns() int
- func (d *Driver) RunQuery(ctx context.Context, sqlStr string, args map[string]any) (*driver.QueryResult, error)
- func (d *Driver) RunRoutine(ctx context.Context, isolation config.TxIsolationLevel, query string, ...) (*driver.QueryResult, error)
- func (d *Driver) SessionCapacity() int
- func (d *Driver) Teardown(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
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 mysql driver. Each worker prepares a gen.Cursor partition, adapts it to a source.RowSource, and drains it through runInsertChunk.
func (*Driver) OpenSession ¶ added in v6.3.0
func (*Driver) PoolMaxConns ¶ added in v6.3.0
func (*Driver) RunRoutine ¶ added in v6.3.3
func (*Driver) SessionCapacity ¶ added in v6.3.0
Click to show internal directories.
Click to hide internal directories.