postgres

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Overview

Package postgres is a Postgres database backed implementation of the db.Db interface.

The postgres implementation of the vise key-value store uses two data columns of type `BYTEA` for each key and value, aswell as an `updated` field of type `TIMESTAMP` that is set to the current time when an update is made.that is set to the current time when an update is made.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPgDb

func NewPgDb() *pgDb

NewpgDb creates a new Postgres backed Db implementation.

Types

type PgInterface added in v0.2.2

type PgInterface interface {
	BeginTx(context.Context, pgx.TxOptions) (pgx.Tx, error)
	Close()
}

Jump to

Keyboard shortcuts

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