It would be possible to implement a collection type that used PGlite, but I think ultimately it adds a level of indirection that's not needed. The intention is to create an IndexedDB backed for collection so that they natively have local persistence. This is at the design phase at the moment and we hope to work on it more actively in a few weeks time.
#Index db with pglite possible?
6 messages · Page 1 of 1 (latest)
Ah thought I was replying to someone else,
I have managed to following the docs with gpt , create a index db collection that relies on electric sql pglite.
Idk much but it's working I can create update delete.
https://noter-lovat.vercel.app/
Is a testing project I'm currently working on for this
Noter
Fast, local-first note taking with tags, projects and categories.
GitHub
note management meet local first approach. Contribute to HimanshuKumarDutt094/noter development by creating an account on GitHub.
I'm fixing a lot of errors for this.
I also created one with just dexie as layer
Which is still in wip
Alright update the dexie layer is goated much better than whatever the heck I was doing with pglite
Followed create collection guide and everything is working for initial setup