Documentation
¶
Overview ¶
Package pgjournal provides an implementation of journal.BinaryStore that persists to a PostgreSQL database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryStore ¶ added in v0.8.0
BinaryStore is an implementation of journal.BinaryStore that persists to a PostgreSQL database.
func (*BinaryStore) Open ¶ added in v0.8.0
func (s *BinaryStore) Open(ctx context.Context, name string) (journal.BinaryJournal, error)
Open returns the journal with the given name.
func (*BinaryStore) Provision ¶ added in v0.17.0
func (s *BinaryStore) Provision(ctx context.Context) error
Provision creates the PostgreSQL schema and tables used by the store if they do not already exist.
The store also creates the schema on first use if it does not exist. Provision allows infrastructure to be created ahead of time, for example as part of a deployment pipeline, so that the application itself does not need DDL permissions.
Click to show internal directories.
Click to hide internal directories.