{"modulePath":"github.com/worklydev/workly","version":"v0.5.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sqlite\n\nPackage sqlite implements store.Store on SQLite, for \\`workly dev\\` and small single-replica self-hosted installs.\n\n## Types\n\n```go\ntype Store struct {\n\t*sqlstore.Store\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc Open(path string) (*Store, error)\n```\nOpen opens (creating if needed) the database file at path.\n\n```go\nfunc (s *Store) Close() error\n```\n\n```go\nfunc (s *Store) ListenChanges(ctx context.Context, ready func(), fn func([]workspace.ID)) error\n```\n\n```go\nfunc (s *Store) Migrate(ctx context.Context) error\n```\nMigrate relies on SQLite's own write lock (see \\_txlock) rather than a separate migration lock.\n\n```go\nfunc (s *Store) MigrationsPending(ctx context.Context) (bool, error)\n```\n\n```go\nfunc (s *Store) Ping(ctx context.Context) error\n```\n\n```go\nfunc (s *Store) PublishChanges(ctx context.Context, ws []workspace.ID) error\n```\n\n```go\nfunc (s *Store) TryLead(ctx context.Context) (store.Leader, error)\n```\nTryLead always succeeds: a SQLite database is served by a single process.\n\n","path":"github.com/worklydev/workly/internal/store/sqlite","name":"sqlite","synopsis":"Package sqlite implements store.Store on SQLite, for `workly dev` and small single-replica self-hosted installs.","isRedistributable":true}
