01-single-database

command
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 7 Imported by: 0

README

Single database

This is the baseline: construct the generated Store with a Singleton containing one pgx pool, select its Accounts() group, and pass the generated AccountsReader or AccountsWriter interface to query helpers. The query API is the same as in the replica and sharded examples.

SINGLE_DATABASE_DSN='postgres://user:pass@localhost/accounts?sslmode=disable' \
  go run ./examples/01-single-database

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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