Here is the new nuxt-pglite, embedded within your server/client or fully tree-shaken dev-only tool of your production postgres I might be a bit slow with releases, but I test new DXs on my own skin first. It took me 4 months of redesigning, but I'm now pretty happy with results and we have docs!
Post
nuxt-pglite.s94.devNuxt PGliteEmbedded Postgres for Nuxt. A PGlite instance for your server routes, a development socket for your Postgres tooling, and an in-browser database with live queries.
I also expose the framework agnostic tooling for instanciation and config management, migration tooling, testing, as well as the socket implementation So if you are not using Nuxt you can still build your own implementation with the same DX
github.comRelease v0.4.0 · sandros94/nuxt-pglite⚠️ Breaking changes
Extensions are imported in a config file, not named in nuxt.config. Full types follow your config.
// before: nuxt.config.ts
pglite: { server: { extensions: ['vector'] } }
//...
Also devtools! oh god how did I ended up forgetting mentioning them! You can register your own devtoolsActions to do things like resetting your db or booting up drizzle studio or whatever you'd like to do
nuxt-pglite.s94.devActionsNamed operations you run from the DevTools tab, next to the database they need.
0 reposts2 likes
No replies yet.