Documentation ¶
Overview ¶
Package storage provides underlying storage implementation of CQL.
Index ¶
- type DSN
- type ExecLog
- type ExecResult
- type Query
- type Storage
- func (s *Storage) Close() (err error)
- func (s *Storage) Commit(ctx context.Context, wb twopc.WriteBatch) (result interface{}, err error)
- func (s *Storage) Exec(ctx context.Context, queries []Query) (result ExecResult, err error)
- func (s *Storage) Prepare(ctx context.Context, wb twopc.WriteBatch) (err error)
- func (s *Storage) Query(ctx context.Context, queries []Query) (columns []string, types []string, data [][]interface{}, err error)
- func (s *Storage) Rollback(ctx context.Context, wb twopc.WriteBatch) (err error)
- type TxID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DSN ¶
type DSN struct {
// contains filtered or unexported fields
}
DSN represents a sqlite connection string.
func (*DSN) GetFileName ¶
GetFileName gets the sqlite database file name of DSN.
func (*DSN) SetFileName ¶
SetFileName sets the sqlite database file name of DSN.
type ExecResult ¶
ExecResult represents the execution result of sqlite.
type Storage ¶
Storage represents a underlying storage implementation based on sqlite3.
Click to show internal directories.
Click to hide internal directories.