Documentation
¶
Index ¶
- Variables
- type SqliteStore
- func (m *SqliteStore) Add(op ...*v1.Operation) error
- func (m *SqliteStore) Close() error
- func (m *SqliteStore) Delete(opID ...int64) ([]*v1.Operation, error)
- func (m *SqliteStore) Get(opID int64) (*v1.Operation, error)
- func (m *SqliteStore) GetHighestOpIDAndModno(q oplog.Query) (int64, int64, error)
- func (m *SqliteStore) Query(q oplog.Query, f func(*v1.Operation) error) error
- func (m *SqliteStore) QueryMetadata(q oplog.Query, f func(oplog.OpMetadata) error) error
- func (m *SqliteStore) ResetForTest(t *testing.T) error
- func (m *SqliteStore) Set(opts oplog.SetOptions, op ...*v1.Operation) error
- func (m *SqliteStore) SetVersion(version int64) error
- func (m *SqliteStore) Transform(q oplog.Query, f func(*v1.Operation) (*v1.Operation, error)) error
- func (m *SqliteStore) Update(op ...*v1.Operation) error
- func (m *SqliteStore) Version() (int64, error)
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) Close ¶
func (m *SqliteStore) Close() error
func (*SqliteStore) GetHighestOpIDAndModno ¶ added in v1.11.0
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) Version ¶
func (m *SqliteStore) Version() (int64, error)
Click to show internal directories.
Click to hide internal directories.