Documentation ¶
Index ¶
- func WithIDGenerator(fn func() (string, error)) func(*Client)
- type Client
- type Conflict
- type Cursor
- type DB
- type Options
- type Snapshot
- type Store
- func (s *Store) Add(id string, data any, o Options) error
- func (s *Store) AddAfter(snapshotID, id string, data any, o Options) (string, error)
- func (s *Store) CountSql(sql string, values []any, o Options) (int, error)
- func (s *Store) GetAll(o Options) (*Cursor, error)
- func (s *Store) GetAllSnapshots(o Options) (*Cursor, error)
- func (s *Store) GetByID(ids []string, o Options) (*Cursor, error)
- func (s *Store) GetCurrentSnapshot(id string, o Options) (*Snapshot, error)
- func (s *Store) GetHistory(id string, o Options) (*Cursor, error)
- func (s *Store) GetSnapshotBefore(id string, dateFrom time.Time, o Options) (*Snapshot, error)
- func (store *Store) ImportSnapshot(snapshot *Snapshot, options Options) error
- func (s *Store) Name() string
- func (s *Store) Purge(id string, o Options) error
- func (s *Store) PurgeAll(o Options) error
- func (s *Store) Select(sql string, values []any, options Options) (*Cursor, error)
- func (s *Store) Update(snapshotID, id string, data any, o Options) (*Snapshot, error)
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithIDGenerator ¶
Types ¶
type Options ¶
type Options struct { Context context.Context Transaction *Transaction }
type Snapshot ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) GetCurrentSnapshot ¶
func (*Store) GetSnapshotBefore ¶ added in v1.0.42
func (*Store) ImportSnapshot ¶
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.