Documentation
¶
Overview ¶
A brevis-sql-api with hooks: register what this binary knows, hand it the file.
The registration IS the main. Everything else -- the commands, the listener, the signals, the drain -- is api.Main, so a binary with code of its own does not re-derive them and forget one. The published brevis-sql-api is these lines with nothing registered, which is why it refuses api.yaml next door.
WAREHOUSE_DSN=postgres://brevis:brevis@localhost:55434/warehouse?sslmode=disable \ BREVIS_ENV=local go run . serve --config api.yaml --connections brevis.yaml curl -s 'localhost:8096/v1/chart/revenue?start_date=01/10/2026&end_date=14/10/2026'
Click to show internal directories.
Click to hide internal directories.