Help us shape the future of Go! Take the 2026 Go Developer Survey

postgres

command
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Example program demonstrating the drops/pg package against a real PostgreSQL instance via the database/sql adapter.

This file lives under _examples/ so it is excluded from the parent module's build (and therefore avoids forcing pgx as a dependency on the core library). To run it:

cd _examples/postgres
go mod init example.com/drops-pg-demo
go mod edit -replace github.com/bernardoforcillo/drops=../..
go mod tidy
DROPS_DSN=postgres://... go run .

Jump to

Keyboard shortcuts

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