postgres

package module
v0.0.0-...-ab837b8 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package postgres stores renewable locks in PostgreSQL dedicated tables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, dsn string) (*sql.DB, error)

Open connects using a pgx connection string. The caller must close the returned DB.

Types

type Config

type Config = sqllock.Config

Config maps table and column identifiers; empty fields select documented defaults.

type Store

type Store struct{ *sqllock.Store }

Store implements distributed_lock.Backend and explicit table migrations.

func New

func New(db *sql.DB, config Config) (*Store, error)

New constructs a backend without migrating or taking ownership of db.

Jump to

Keyboard shortcuts

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