postgres

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package postgres links the PostgreSQL driver into a Nucleus application.

Import it for its side effect, once, anywhere in the program:

import _ "github.com/jcsvwinston/nucleus/drivers/postgres"

It registers pgx/v5 under the name "pgx", which is what pkg/db resolves a postgres:// or postgresql:// URL to.

Unlike the other driver modules this one registers no classifier, and that is deliberate rather than an omission: pkg/db reads a PostgreSQL SQLSTATE through the `SQLState() string` method every PostgreSQL driver exposes, so unique-violation detection already works here — for lib/pq too — without naming a driver type.

Jump to

Keyboard shortcuts

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