postgresdriver

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDSN

func BuildDSN(host, port, user, password, dbname, sslmode string) string

Build a data source name string. If sslmode is empty we fall back to "prefer" — pgx rejects an empty value, and "prefer" is the safest default (tries SSL, falls back to plain TCP if the server doesn't support it).

func Session

func Session(pool *sql.DB) (db.Session, error)

Create a new Postgres builder session

Types

This section is empty.

Jump to

Keyboard shortcuts

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