postgres_pgmq 0.1.0 copy "postgres_pgmq: ^0.1.0" to clipboard
postgres_pgmq: ^0.1.0 copied to clipboard

Idiomatic Dart client for Postgres Message Queue (PGMQ) on package:postgres. Wraps any Session (Connection, Pool, TxSession) with the full PGMQ SQL API.

example/README.md

postgres_pgmq examples #

Start a local PGMQ database:

docker run -d --name pgmq -e POSTGRES_PASSWORD=postgres -p 5432:5432 \
  ghcr.io/pgmq/pg18-pgmq:latest

Dart scripts #

File What it shows
connection_example.dart Single Connection, send / read / pop
pool_example.dart Pool, batch send, long-poll worker
transaction_example.dart runTx with Pgmq(tx)
topics_fifo_example.dart FIFO groups and topic routing

Run any script from the repo root:

dart run example/connection_example.dart

Flutter demo #

The full Flutter consumer app lives in pgmq_flutter_demo/. It exercises the entire client API from a real app's dependency graph. See that folder's README for setup and flutter test instructions.

0
likes
160
points
173
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Idiomatic Dart client for Postgres Message Queue (PGMQ) on package:postgres. Wraps any Session (Connection, Pool, TxSession) with the full PGMQ SQL API.

Repository (GitHub)
View/report issues

Topics

#postgres #pgmq #queue #messaging

License

MIT (license)

Dependencies

postgres

More

Packages that depend on postgres_pgmq