-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
3,111 additions
and
713 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Examples | ||
|
||
We have a number of examples showing how to use PGlite and it's capabilities: | ||
|
||
- <a href="./examples/basic.html" target="_blank">Basic</a><br> | ||
A basic example showing how to initiate a PGlite database and perform queries using `.exec()` | ||
|
||
- <a href="./examples/query-params.html" target="_blank">Query Params</a><br> | ||
Aa example showing how to perform parasitised queries using `.query()` method. | ||
|
||
- <a href="./examples/copy.html" target="_blank">Copy</a><br> | ||
An example showing to use the `COPY` command with the PGlite `/dev/blob` device. | ||
|
||
- <a href="./examples/dump-data-dir.html" target="_blank">Dump Data Dir</a><br> | ||
Example of the `db.dumpDataDir()` method to save a tarball of a database. | ||
|
||
- <a href="./examples/live.html" target="_blank">Live Query</a><br> | ||
Reactivity example using the live query extensions `.live.query()` method. | ||
|
||
- <a href="./examples/live-changes.html" target="_blank">Live Changes</a><br> | ||
Reactivity example using the live query extensions `.live.changes()` method. | ||
|
||
- <a href="./examples/live-incremental.html" target="_blank">Live Incremental Query</a><br> | ||
Reactivity example using the live query extensions `.live.incrementalQuery()` method. | ||
|
||
- <a href="./examples/notify.html" target="_blank">Notify and Listen</a><br> | ||
Example showing the use of the `NOTIFY` and `LISTEN` Postgres commands using PGlites `.listen()` api. | ||
|
||
- <a href="./examples/opfs.html" target="_blank">OPFS VFS</a><br> | ||
An example deponstrating the [OPFS Access Handle Pool VFS](./docs/filesystems.md#opfs-ahp-fs). | ||
|
||
- <a href="./examples/copy.html" target="_blank">PL/PGSQL</a><br> | ||
Demonstration of PGlites support for Postgres's built in SQL procedural language extension "PL/PGSQL". | ||
|
||
- <a href="./examples/vector.html" target="_blank">Extension: `pgvector`</a><br> | ||
An example showing how to use [pgvector](https://github.com/pgvector/pgvector) with PGlite. | ||
|
||
- <a href="./examples/worker.html" target="_blank">Multi Tab Worker</a><br> | ||
Demonstration of the multi tab worker, enabling multiple browser tabs to share a PGlite database. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.