pgkv

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package pgkv provides an implementation of kv.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 Store.

Types

type Store

type Store struct {
	DB *sql.DB
}

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

func (*Store) Open

func (s *Store) Open(_ context.Context, name string) (kv.Keyspace, error)

Open returns the keyspace with the given name.

Jump to

Keyboard shortcuts

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