Documentation
¶
Overview ¶
Package sqlite implements store.Store on SQLite, for `workly dev` and small single-replica self-hosted installs.
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) ListenChanges(ctx context.Context, ready func(), fn func([]workspace.ID)) error
- func (s *Store) Migrate(ctx context.Context) error
- func (s *Store) MigrationsPending(ctx context.Context) (bool, error)
- func (s *Store) Ping(ctx context.Context) error
- func (s *Store) PublishChanges(ctx context.Context, ws []workspace.ID) error
- func (s *Store) TryLead(ctx context.Context) (store.Leader, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
func (*Store) ListenChanges ¶ added in v0.2.0
func (*Store) Migrate ¶
Migrate relies on SQLite's own write lock (see _txlock) rather than a separate migration lock.