Documentation
¶
Overview ¶
Package store (v1) is the baseline implementation of store.Store.
Index ¶
- type Column
- type Store
- func (s *Store[R]) Begin() *View[R]
- func (s *Store) Column(typ reflect.Type) store.Column[R, any]
- func (s *Store) Columns() store.Iterator[reflect.Type]
- func (s *Store[R]) DeleteColumn(col reflect.Type)
- func (s *Store[R]) Flatten()
- func (s *Store) For(scope store.Rows[R]) store.Store[R]
- func (s *Store) HasRow(row R) bool
- func (s *Store) ReadColumn(typ reflect.Type) (store.Column[R, any], bool)
- func (s *Store) Row(row R) store.Iterator2[reflect.Type, any]
- func (s *Store) Rows() store.Rows[R]
- type TypedColumn
- func (c *TypedColumn[R, V]) All() store.Iterator2[R, V]
- func (c *TypedColumn[R, V]) AllSlots() store.Iterator2[R, V]
- func (c *TypedColumn[R, V]) Clear(row R)
- func (c *TypedColumn[R, V]) ExecuteRead(s store.Store[R], op ops.Read[R, V]) (store.Iterator[ops.RowValue[R, V]], bool)
- func (c *TypedColumn[R, V]) ExecuteReadAll(s store.Store[R], op ops.ReadAll[R, V]) (store.Iterator[ops.RowValue[R, V]], bool)
- func (c *TypedColumn[R, V]) ExecuteReadOptional(s store.Store[R], op ops.ReadOptional[R, V]) (store.Iterator[ops.RowValue[R, store.Maybe[V]]], bool)
- func (c *TypedColumn[R, V]) ExecuteReadWithDefault(s store.Store[R], op ops.ReadWithDefault[R, V]) (store.Iterator[ops.RowValue[R, V]], bool)
- func (c *TypedColumn[R, V]) Get(key R) (V, bool)
- func (c *TypedColumn[R, V]) Has(row R) bool
- func (c *TypedColumn[R, V]) Rows() store.Rows[R]
- func (c *TypedColumn[R, V]) Set(row R, value V)
- func (c *TypedColumn[R, V]) Slot(slot int) store.Column[R, V]
- func (c *TypedColumn[R, V]) Unwrap() store.Column[R, V]
- type UntypedColumn
- func (c *UntypedColumn[R, V]) All() store.Iterator2[R, any]
- func (c *UntypedColumn[R, V]) AllSlots() store.Iterator2[R, any]
- func (c *UntypedColumn[R, V]) Clear(key R)
- func (c *UntypedColumn[R, V]) Get(key R) (any, bool)
- func (c *UntypedColumn[R, V]) Has(row R) bool
- func (c *UntypedColumn[R, V]) Rows() store.Rows[R]
- func (c *UntypedColumn[R, V]) Set(key R, value any)
- func (c *UntypedColumn[R, V]) Slot(slot int) store.Column[R, any]
- func (c *UntypedColumn[R, V]) Unwrap() store.Column[R, V]
- type View
- func (s *View[R]) Begin() *View[R]
- func (s *View) Column(typ reflect.Type) store.Column[R, any]
- func (s *View) Columns() store.Iterator[reflect.Type]
- func (s *View[R]) Commit()
- func (s *View) For(scope store.Rows[R]) store.Store[R]
- func (s *View) HasRow(row R) bool
- func (s *View) ReadColumn(typ reflect.Type) (store.Column[R, any], bool)
- func (s *View) Row(row R) store.Iterator2[reflect.Type, any]
- func (s *View) Rows() store.Rows[R]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
func (*Store[R]) DeleteColumn ¶
func (*Store) ReadColumn ¶
type TypedColumn ¶
func (*TypedColumn[R, V]) All ¶
func (c *TypedColumn[R, V]) All() store.Iterator2[R, V]
func (*TypedColumn[R, V]) AllSlots ¶
func (c *TypedColumn[R, V]) AllSlots() store.Iterator2[R, V]
func (*TypedColumn[R, V]) Clear ¶
func (c *TypedColumn[R, V]) Clear(row R)
Clear clears the value for the given key.
func (*TypedColumn[R, V]) ExecuteRead ¶
func (*TypedColumn[R, V]) ExecuteReadAll ¶
func (*TypedColumn[R, V]) ExecuteReadOptional ¶
func (*TypedColumn[R, V]) ExecuteReadWithDefault ¶
func (c *TypedColumn[R, V]) ExecuteReadWithDefault(s store.Store[R], op ops.ReadWithDefault[R, V]) (store.Iterator[ops.RowValue[R, V]], bool)
func (*TypedColumn[R, V]) Get ¶
func (c *TypedColumn[R, V]) Get(key R) (V, bool)
Get retrieves the value for the given key.
func (*TypedColumn[R, V]) Has ¶
func (c *TypedColumn[R, V]) Has(row R) bool
func (*TypedColumn[R, V]) Rows ¶
func (c *TypedColumn[R, V]) Rows() store.Rows[R]
func (*TypedColumn[R, V]) Set ¶
func (c *TypedColumn[R, V]) Set(row R, value V)
Set sets the value for the given key.
func (*TypedColumn[R, V]) Unwrap ¶
func (c *TypedColumn[R, V]) Unwrap() store.Column[R, V]
type UntypedColumn ¶
type UntypedColumn[R store.Row, V any] TypedColumn[R, V]
func (*UntypedColumn[R, V]) AllSlots ¶
func (c *UntypedColumn[R, V]) AllSlots() store.Iterator2[R, any]
func (*UntypedColumn[R, V]) Clear ¶
func (c *UntypedColumn[R, V]) Clear(key R)
func (*UntypedColumn[R, V]) Get ¶
func (c *UntypedColumn[R, V]) Get(key R) (any, bool)
func (*UntypedColumn[R, V]) Has ¶
func (c *UntypedColumn[R, V]) Has(row R) bool
func (*UntypedColumn[R, V]) Rows ¶
func (c *UntypedColumn[R, V]) Rows() store.Rows[R]
func (*UntypedColumn[R, V]) Set ¶
func (c *UntypedColumn[R, V]) Set(key R, value any)
func (*UntypedColumn[R, V]) Slot ¶
func (c *UntypedColumn[R, V]) Slot(slot int) store.Column[R, any]
func (*UntypedColumn[R, V]) Unwrap ¶
func (c *UntypedColumn[R, V]) Unwrap() store.Column[R, V]
Click to show internal directories.
Click to hide internal directories.