pg_completion

command
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package main demonstrates transactional completion — committing a business database write and the dureq completion marker in the same SQL transaction.

This is the strongest exactly-once pattern when your business state and job result live in the same PostgreSQL database.

Requires: PostgreSQL running with the dureq_completions table created. See pkg/integration/postgres.EnsureTable().

Usage:

export POSTGRES_DSN="postgres://user:pass@localhost/mydb?sslmode=disable"
go run ./examples/pg_completion

Jump to

Keyboard shortcuts

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