Documentation
¶
Index ¶
- Variables
- type Batch
- type BatchConn
- type 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
- type Result
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTxUnsupported = errors.New("scylla: transactions are not supported")
Functions ¶
This section is empty.
Types ¶
type Connect ¶
type Connect struct {
Host string
Identifier string
Timeout time.Duration
// contains filtered or unexported fields
}
func (*Connect) AnalyzeSQL ¶
func (*Connect) Connection ¶
func (*Connect) DriverName ¶
func (*Connect) Transaction ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (Result) LastInsertId ¶
func (Result) RowsAffected ¶
Click to show internal directories.
Click to hide internal directories.