Documentation
¶
Overview ¶
Package postgres implements store.Store on PostgreSQL (14+).
To keep Workly's tables in a dedicated schema, create the schema and pass search_path in the connection URL, e.g. postgres://…/app?search_path=workly.
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
ListenChanges listens on a connection of its own, taken out of the pool: a pooled connection would carry the LISTEN to whoever uses it next.