pgjournal

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 7 Imported by: 0

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

type BinaryStore struct {
	// DB is the PostgreSQL database connection.
	DB *sql.DB
}

BinaryStore is an implementation of journal.BinaryStore that persists to a PostgreSQL database.

func (*BinaryStore) Open added in v0.8.0

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.

Jump to

Keyboard shortcuts

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