Documentation
¶
Overview ¶
Package sqlitestore provides the server's transactional durable key store.
Index ¶
- Variables
- type Store
- func (s *Store) Batch(puts map[string][]byte, deletes []string) error
- func (s *Store) Close() error
- func (s *Store) Delete(key string) error
- func (s *Store) Get(key string) ([]byte, error)
- func (s *Store) Initialize(records map[string][]byte) error
- func (s *Store) Initialized() (bool, error)
- func (s *Store) List() (map[string][]byte, error)
- func (s *Store) Put(key string, payload []byte) error
Constants ¶
This section is empty.
Variables ¶
var ErrCorrupt = errors.New("SQLite database is corrupt")
ErrCorrupt identifies verified invalid database contents, not lock, permission or schema-version failures. Runtimes may isolate the affected project.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func Open ¶
Open owns its directory handle until Close. Database and journal files stay in that directory; a changed directory/file identity fails closed.
func (*Store) Batch ¶
Batch publishes all records in one transaction, including the pinned-root snapshot path. A failed statement or durable snapshot leaves every key old.
func (*Store) Initialize ¶
Initialize imports legacy records and the completion marker in one commit. Once committed, even an empty records table never imports legacy data again.