Documentation
¶
Index ¶
- Variables
- func ToOrdered(v any) any
- func TypeMatch(v any, typ types.T) bool
- type Atomic
- type BatchIter
- type Bool
- type Bytes
- type Float
- type ID
- type IndexEntry
- type IndexIter
- type Int
- type Iter
- type KVIter
- type KVPair
- type Nullable
- type Ordered
- type Row
- type Table
- func (t *Table[K, V, R]) Delete(tx *Transaction, key K) (err error)
- func (t *Table[K, V, R]) EraseHistory(before Time)
- func (t *Table[K, V, R]) Get(tx *Transaction, key K) (value V, err error)
- func (t *Table[K, V, R]) Index(tx *Transaction, index Tuple) (entries []*IndexEntry[K, V], err error)
- func (t *Table[K, V, R]) Insert(tx *Transaction, row R) (err error)
- func (t *Table[K, V, R]) NewIndexIter(tx *Transaction, min Tuple, max Tuple) (*IndexIter[K, V], error)
- func (t *Table[K, V, R]) NewIter(tx *Transaction) (*TableIter[K, V], error)
- func (t *Table[K, V, R]) Update(tx *Transaction, row R) (err error)
- func (t *Table[K, V, R]) Upsert(tx *Transaction, row R) (err error)
- type TableIter
- type Text
- type Time
- type Transaction
- type TransactionState
- type Tuple
- type Uint
Constants ¶
This section is empty.
Variables ¶
View Source
var Max max
View Source
var Min min
Functions ¶
Types ¶
type ID ¶
type ID = memoryengine.ID
type IndexEntry ¶
type IndexIter ¶
func (*IndexIter[K, V]) Read ¶
func (i *IndexIter[K, V]) Read() (*IndexEntry[K, V], error)
type Table ¶
type Table[ K Ordered[K], V any, R Row[K, V], ] struct { sync.Mutex // contains filtered or unexported fields }
func (*Table[K, V, R]) Delete ¶
func (t *Table[K, V, R]) Delete( tx *Transaction, key K, ) ( err error, )
func (*Table[K, V, R]) EraseHistory ¶
func (*Table[K, V, R]) Get ¶
func (t *Table[K, V, R]) Get( tx *Transaction, key K, ) ( value V, err error, )
func (*Table[K, V, R]) Index ¶
func (t *Table[K, V, R]) Index(tx *Transaction, index Tuple) (entries []*IndexEntry[K, V], err error)
func (*Table[K, V, R]) Insert ¶
func (t *Table[K, V, R]) Insert( tx *Transaction, row R, ) ( err error, )
func (*Table[K, V, R]) NewIndexIter ¶
func (*Table[K, V, R]) NewIter ¶
func (t *Table[K, V, R]) NewIter(tx *Transaction) (*TableIter[K, V], error)
func (*Table[K, V, R]) Update ¶
func (t *Table[K, V, R]) Update( tx *Transaction, row R, ) ( err error, )
func (*Table[K, V, R]) Upsert ¶
func (t *Table[K, V, R]) Upsert( tx *Transaction, row R, ) ( err error, )
type Transaction ¶
type Transaction struct {
State *Atomic[TransactionState]
BeginTime Time
// contains filtered or unexported fields
}
func NewTransaction ¶
func NewTransaction( beginTime Time, ) *Transaction
func (*Transaction) Abort ¶
func (t *Transaction) Abort() error
func (*Transaction) Commit ¶
func (t *Transaction) Commit(commitTime Time) error
type TransactionState ¶
type TransactionState uint8
const ( Active TransactionState = iota Committed Aborted )
func (TransactionState) String ¶
func (t TransactionState) String() string
Click to show internal directories.
Click to hide internal directories.