chore: Linearlite - Electric sync + PGlite demo app#393
chore: Linearlite - Electric sync + PGlite demo app#393
Conversation
|
What's the status on merging and deploying this? |
|
I've cherry picked out all the changes to PGlite + the sync plugin, they are now all in main with docs and testing, and most were released (just windowed live queries aren't). I just need to rebase this on main and merge it. I'll try and pick that up tomorrow. I'll have a chat with @balegas on plan for deploying it. |
48b2562 to
b1245af
Compare
|
@balegas could I get you to review the merge logic: https://github.com/electric-sql/pglite/pull/393/files#diff-9ea8511284754ad34fc4d8ee4bf19aeb0996d57e0b22ac29589580fe7e21848a @msfstef if you have a moment early next week could you have a skim though the app code. Versions of Linerarlite have been reviewed so many times it should be relatively cursory |
f2b7ee4 to
0d1e75c
Compare
|
🚀 Deployed on https://674d78c7b97b14c75c6d5041--pglite.netlify.app |
2a70daa to
a28c961
Compare
38b785d to
5194c45
Compare
5194c45 to
44bf9b3
Compare
* Swap to postgres.js so compatible with CF Workers * Added table schema checks to linearite demo triggers. I ran into an issue using these triggers on a table with the same name as a table in another schema. Adding table schema checks fixes the issue. --------- Co-authored-by: Sam Willis <sam.willis@gmail.com>
|
This example was moved into the main Electric monorepo |
This is a demo app demonstrating how to build a local-first app using Electric sync and PGlite. It's a clone of the Linear project management tool.
Features:
src/server.tswhere you can implement custom validation and conflict handlingCan handle in excess of 100k issues and 500k comments.
Linearlite+PGlite-min.mp4
This version replaces #368 where the modified rows are in the same table as the synced data. This improves read performance.