vsql_rest serves your tables over HTTP from inside the database process. A
client reads rows with a URL instead of a connection, filters them with query
parameters, and calls stored functions under /rpc/. There is no application
to write and no second process to run.
Install
vsql_rest.veb is already in the server’s lib/veb/ directory if you installed
VillageSQL with the install script, the Docker image, or a release tarball.
Install it into the server with one statement:
What it adds
It adds no SQL functions. You configure it withSET GLOBAL, and every request
it answers arrives over HTTP.
Example
Create the table first, because the listener caches the database layout when it starts and holds it forschema_ttl seconds:
A setting written with
SET PERSIST survives a restart, but
UNINSTALL EXTENSION deletes it. After an uninstall and reinstall every
setting is back at its default, and no restart brings the old value back.See also
- Managing extensions — how extension settings are read and written
- Preview capabilities — what the preview flag turns on and what it promises
- Available extensions — the full catalog
- villagesql/vsql-rest — source, the full route syntax, and the known limitations

