Repository navigation
First proper release of libsql-rest. Point it at a Turso/libSQL database or a local SQLite file and every table gets REST endpoints, no handler code to write.
- list, get, insert, update and delete for every table. Views get list only
- PostgREST style filters, ordering, paging and
selecton list endpoints, like?age=gte.18&order=age.desc GET /openapi.jsonis built from the live schema so you can generate a client off it- optional JWT auth with HMAC or RSA keys, plus
keygenandtokencommands for creating keys and test tokens - config from flags,
LIBSQL_REST_*env vars or a YAML file. Useallow_tablesto only expose the tables you want - fixes the SQL injection from #8
Install with go install github.com/JayJamieson/libsql-rest@latest or grab a binary below.
Default driver is sqlite. If you're connecting to Turso or a libSQL server pass --driver libsql.
What's Changed
v1 release implemented remaining open issues for basic CRUD and known SQL injection vector. JWT based authentication was also added with built in tooling for generating keys.
- implemented basic list tables endpoint for #1 by @JayJamieson in #9
- added get row by id implementation completing #4 by @JayJamieson in #10
- feat: libsql-rest v1 by @JayJamieson in #11
Full Changelog: https://github.com/JayJamieson/libsql-rest/commits/v1.0.0