example

command
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 5 Imported by: 0

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'

Jump to

Keyboard shortcuts

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