store

package
v0.0.0-...-557e180 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package store (v1) is the baseline implementation of store.Store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column[R store.Row, V any] interface {
	store.Column[R, V]
	// contains filtered or unexported methods
}

type Store

type Store[R store.Row] struct {
	// contains filtered or unexported fields
}

func New

func New[R store.Row](factory func(reflect.Type) Column[R, any]) *Store[R]

New creates a new store that uses the given column factory.

func (*Store[R]) Begin

func (s *Store[R]) Begin() *View[R]

Begin creates a new view of the store.

func (*Store) Column

func (s *Store) Column(typ reflect.Type) store.Column[R, any]

Column returns the given column, creating it if necessary.

func (*Store) Columns

func (s *Store) Columns() store.Iterator[reflect.Type]

func (*Store[R]) DeleteColumn

func (s *Store[R]) DeleteColumn(col reflect.Type)

func (*Store[R]) Flatten

func (s *Store[R]) Flatten()

Flatten flattens all deltas.

func (*Store) For

func (s *Store) For(scope store.Rows[R]) store.Store[R]

func (*Store) HasRow

func (s *Store) HasRow(row R) bool

func (*Store) ReadColumn

func (s *Store) ReadColumn(typ reflect.Type) (store.Column[R, any], bool)

func (*Store) Row

func (s *Store) Row(row R) store.Iterator2[reflect.Type, any]

func (*Store) Rows

func (s *Store) Rows() store.Rows[R]

type TypedColumn

type TypedColumn[R store.Row, V any] struct {
	// contains filtered or unexported fields
}

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 (c *TypedColumn[R, V]) ExecuteRead(s store.Store[R], op ops.Read[R, V]) (store.Iterator[ops.RowValue[R, V]], bool)

func (*TypedColumn[R, V]) ExecuteReadAll

func (c *TypedColumn[R, V]) ExecuteReadAll(s store.Store[R], op ops.ReadAll[R, V]) (store.Iterator[ops.RowValue[R, V]], bool)

func (*TypedColumn[R, V]) ExecuteReadOptional

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 (*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]) Slot

func (c *TypedColumn[R, V]) Slot(slot int) store.Column[R, V]

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]) All

func (c *UntypedColumn[R, V]) All() store.Iterator2[R, any]

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]

type View

type View[R store.Row] struct {
	// contains filtered or unexported fields
}

func (*View[R]) Begin

func (s *View[R]) Begin() *View[R]

Begin creates a new view of the store.

func (*View) Column

func (s *View) Column(typ reflect.Type) store.Column[R, any]

Column returns the given column, creating it if necessary.

func (*View) Columns

func (s *View) Columns() store.Iterator[reflect.Type]

func (*View[R]) Commit

func (s *View[R]) Commit()

Commit commits the view to its parent.

func (*View) For

func (s *View) For(scope store.Rows[R]) store.Store[R]

func (*View) HasRow

func (s *View) HasRow(row R) bool

func (*View) ReadColumn

func (s *View) ReadColumn(typ reflect.Type) (store.Column[R, any], bool)

func (*View) Row

func (s *View) Row(row R) store.Iterator2[reflect.Type, any]

func (*View) Rows

func (s *View) Rows() store.Rows[R]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL