Skip to content

v1.0.0

Latest

Choose a tag to compare

@JayJamieson JayJamieson released this 10 Nov 05:03
304dc98

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 select on list endpoints, like ?age=gte.18&order=age.desc
  • GET /openapi.json is built from the live schema so you can generate a client off it
  • optional JWT auth with HMAC or RSA keys, plus keygen and token commands for creating keys and test tokens
  • config from flags, LIBSQL_REST_* env vars or a YAML file. Use allow_tables to 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.

Full Changelog: https://github.com/JayJamieson/libsql-rest/commits/v1.0.0