Documentation ¶
Index ¶
- func Open(ctx context.Context, projectID string) (tuple.Store, error)
- func OpenClient(cli *datastore.Client) tuple.Store
- type Iterator
- type Table
- func (tbl *Table) Clear(ctx context.Context) error
- func (tbl *Table) DeleteTuples(ctx context.Context, f *tuple.Filter) error
- func (tbl *Table) DeleteTuplesByKey(ctx context.Context, keys []tuple.Key) error
- func (tbl *Table) Drop(ctx context.Context) error
- func (tbl *Table) GetTuple(ctx context.Context, key tuple.Key) (tuple.Data, error)
- func (tbl *Table) GetTupleBatch(ctx context.Context, keys []tuple.Key) ([]tuple.Data, error)
- func (tbl *Table) Header() tuple.Header
- func (tbl *Table) InsertTuple(ctx context.Context, t tuple.Tuple) (tuple.Key, error)
- func (tbl *Table) Open(ctx context.Context, tx tuple.Tx) (tuple.Table, error)
- func (tbl *Table) Scan(ctx context.Context, opt *tuple.ScanOptions) tuple.Iterator
- func (tbl *Table) UpdateTuple(ctx context.Context, t tuple.Tuple, opt *tuple.UpdateOpt) error
- type TupleStore
- func (s *TupleStore) Close() error
- func (s *TupleStore) ListTables(ctx context.Context) ([]tuple.TableInfo, error)
- func (s *TupleStore) Table(ctx context.Context, name string) (tuple.TableInfo, error)
- func (s *TupleStore) Tx(ctx context.Context, rw bool) (tuple.Tx, error)
- func (s *TupleStore) Update(ctx context.Context, fn func(tx tuple.Tx) error) error
- func (s *TupleStore) View(ctx context.Context, fn func(tx tuple.Tx) error) error
- type Tx
- func (tx *Tx) Close() error
- func (tx *Tx) Commit(ctx context.Context) error
- func (tx *Tx) CreateTable(ctx context.Context, table tuple.Header) (tuple.Table, error)
- func (tx *Tx) ListTables(ctx context.Context) ([]tuple.Table, error)
- func (tx *Tx) Table(ctx context.Context, name string) (tuple.Table, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (*Table) DeleteTuples ¶
func (*Table) DeleteTuplesByKey ¶
func (*Table) GetTupleBatch ¶
func (*Table) InsertTuple ¶
type TupleStore ¶
type TupleStore struct {
// contains filtered or unexported fields
}
func (*TupleStore) Close ¶
func (s *TupleStore) Close() error
func (*TupleStore) ListTables ¶
Click to show internal directories.
Click to hide internal directories.