postgres

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(value string, compress bool) (*db.DB, error)

New builds a PostgreSQL backend from a postgres:// or postgresql:// URL. The returned sql.DB is a connection pool.

func NewWithDB

func NewWithDB(database *sql.DB, compress bool) *db.DB

NewWithDB builds a PostgreSQL backend around an existing connection pool.

Types

This section is empty.

Jump to

Keyboard shortcuts

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