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 .
Click to show internal directories.
Click to hide internal directories.