postgres

package
v0.0.0-...-d5af4c6 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: EUPL-1.2 Imports: 8 Imported by: 0

Documentation

Overview

Package postgres is the PostgreSQL backend for the kv.Store interface. It is a separate package from kv so that importing kv never pulls in a database driver (Go prunes pgx from modules that import only kv); only code that wires Postgres imports this package. Open returns a kv.Store (the duck type), so callers stay decoupled from this backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, dsn string) (kv.Store, error)

Open connects to Postgres at dsn, applies the kv schema, and returns a kv.Store.

Types

This section is empty.

Jump to

Keyboard shortcuts

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