pgjournal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package pgjournal provides an implementation of journal.Store that persists to a PostgreSQL database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSchema

func CreateSchema(
	ctx context.Context,
	db *sql.DB,
) error

CreateSchema creates the PostgreSQL schema elements required by [JournalStore].

Types

type Store

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

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

func (*Store) Open

func (s *Store) Open(_ context.Context, name string) (journal.Journal, error)

Open returns the journal with the given name.

Jump to

Keyboard shortcuts

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