sqlitestore

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLocked = errors.New("sqlite db is locked")

Functions

This section is empty.

Types

type SqliteStore

type SqliteStore struct {
	// contains filtered or unexported fields
}

func NewMemorySqliteStore added in v1.7.0

func NewMemorySqliteStore(t testing.TB) (*SqliteStore, error)

func NewSqliteStore

func NewSqliteStore(db string) (*SqliteStore, error)

func (*SqliteStore) Add

func (m *SqliteStore) Add(op ...*v1.Operation) error

func (*SqliteStore) Close

func (m *SqliteStore) Close() error

func (*SqliteStore) Delete

func (m *SqliteStore) Delete(opID ...int64) ([]*v1.Operation, error)

func (*SqliteStore) Get

func (m *SqliteStore) Get(opID int64) (*v1.Operation, error)

func (*SqliteStore) GetHighestOpIDAndModno added in v1.11.0

func (m *SqliteStore) GetHighestOpIDAndModno(q oplog.Query) (int64, int64, error)

func (*SqliteStore) Query

func (m *SqliteStore) Query(q oplog.Query, f func(*v1.Operation) error) error

func (*SqliteStore) QueryMetadata added in v1.7.0

func (m *SqliteStore) QueryMetadata(q oplog.Query, f func(oplog.OpMetadata) error) error

func (*SqliteStore) ResetForTest added in v1.7.0

func (m *SqliteStore) ResetForTest(t *testing.T) error

func (*SqliteStore) Set added in v1.13.0

func (m *SqliteStore) Set(opts oplog.SetOptions, op ...*v1.Operation) error

func (*SqliteStore) SetVersion

func (m *SqliteStore) SetVersion(version int64) error

func (*SqliteStore) Transform

func (m *SqliteStore) Transform(q oplog.Query, f func(*v1.Operation) (*v1.Operation, error)) error

func (*SqliteStore) Update

func (m *SqliteStore) Update(op ...*v1.Operation) error

func (*SqliteStore) Version

func (m *SqliteStore) Version() (int64, error)

Jump to

Keyboard shortcuts

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