@electric-sql/pglite-vue
v0.2.12
Published
Vue hooks for using PGlite
Downloads
191
Readme
PGlite Vue Bindings
This package implements Vue hooks for PGLite on top of the live query plugin. Full documentation is available at pglite.dev/docs/framework-hooks/vue.
To install:
npm install @electric-sql/pglite-vue
The hooks this package provides are:
- providePGlite: Provide a PGlite instance to all child components.
- injectPGlite: Retrieve the provided PGlite instance.
- makePGliteDependencyInjector: Utility to create a typed version of
providePGlite
andinjectPGlite
. - useLiveQuery: Reactively receive results of a live query change
- useLiveIncrementalQuery: Reactively receive results of a live query change by offloading the diff to PGlite