sqlite

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package sqlite implements store.Store on SQLite, for `workly dev` and small single-replica self-hosted installs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	*sqlstore.Store
	// contains filtered or unexported fields
}

func Open

func Open(path string) (*Store, error)

Open opens (creating if needed) the database file at path.

func (*Store) Close

func (s *Store) Close() error

func (*Store) ListenChanges added in v0.2.0

func (s *Store) ListenChanges(ctx context.Context, ready func(), fn func([]workspace.ID)) error

func (*Store) Migrate

func (s *Store) Migrate(ctx context.Context) error

Migrate relies on SQLite's own write lock (see _txlock) rather than a separate migration lock.

func (*Store) MigrationsPending

func (s *Store) MigrationsPending(ctx context.Context) (bool, error)

func (*Store) Ping

func (s *Store) Ping(ctx context.Context) error

func (*Store) PublishChanges added in v0.2.0

func (s *Store) PublishChanges(ctx context.Context, ws []workspace.ID) error

func (*Store) TryLead

func (s *Store) TryLead(ctx context.Context) (store.Leader, error)

TryLead always succeeds: a SQLite database is served by a single process.

Jump to

Keyboard shortcuts

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