Versions in this module Expand all Collapse all v0 v0.1.1 Jun 11, 2026 v0.1.0 May 24, 2026 Changes in this version + var ErrTxUnsupported = errors.New("scylla: transactions are not supported") + type Batch struct + func (b *Batch) Add(q db.Query) error + func (b *Batch) AddSQL(query string, args ...any) error + func (b *Batch) Execute() error + type BatchConn interface + NewBatch func(ctx context.Context, batchType gocql.BatchType) *Batch + NewCounterBatch func(ctx context.Context) *Batch + NewLoggedBatch func(ctx context.Context) *Batch + NewUnloggedBatch func(ctx context.Context) *Batch + type Connect struct + Host string + Identifier string + Timeout time.Duration + func New() *Connect + func (c *Connect) AnalyzeSQL(q string) (prepared string, placeholders int, err error) + func (c *Connect) Close() error + func (c *Connect) Connection() *gocql.Session + func (c *Connect) CreatePool(cfg db.Config) error + func (c *Connect) DriverName() string + func (c *Connect) Exec(q db.Query) (db.Result, error) + func (c *Connect) ExecCtx(ctx context.Context, q db.Query) (db.Result, error) + func (c *Connect) Fork() db.Conn + func (c *Connect) LoadFile() string + func (c *Connect) NewBatch(ctx context.Context, batchType gocql.BatchType) *Batch + func (c *Connect) NewCounterBatch(ctx context.Context) *Batch + func (c *Connect) NewLoggedBatch(ctx context.Context) *Batch + func (c *Connect) NewUnloggedBatch(ctx context.Context) *Batch + func (c *Connect) Query(query db.Query, each func(row map[string]any) error) error + func (c *Connect) QueryCtx(ctx context.Context, query db.Query, each func(row map[string]any) error) error + func (c *Connect) QueryRows(ctx context.Context, q db.Query) (mapper.Rows, error) + func (c *Connect) SelectSQL(q db.DialectSQL) string + func (c *Connect) Settings(identifier string) error + func (c *Connect) Transaction(fn func(tx db.Conn) error) (retErr error) + func (c *Connect) TransactionCtx(ctx context.Context, fn func(tx db.Conn) error) error + type Pool struct + ConfigKey string + Connect db.Config + Connection *gocql.Session + Consistency gocql.Consistency + PoolKey string + Refs int + type Result struct + func (r Result) LastInsertId() int64 + func (r Result) RowsAffected() int64