An open API service indexing awesome lists of open source software.

https://github.com/ledouxm/kysely-monorepo

SQLite browser-backend synchronization PoC
https://github.com/ledouxm/kysely-monorepo

Last synced: about 1 year ago
JSON representation

SQLite browser-backend synchronization PoC

Awesome Lists containing this project

README

          

# Typesafe synchronized SQLite db

The frontend package uses `kysely-wasqlite-worker` (which uses `wa-sqlite`) to store an SQLite database using either OPFS or indexedDb

The backend package uses `drizzle` to generate migrations from schema, and `fastify` to serve them to the frontend

- On load, the frontend fetches migrations list and executes missing ones.
- If the frontend has migrations whose name is not on the backend migrations list, then it drops every table and executes every migration it finds