createPgliteDataConnector
The createPgliteDataConnector function creates a DataConnector that persists Atom data in a PGlite database table.
createPgliteDataConnector<Depth>(options: PgliteDataConnectorOptions<Depth>): PgliteDataConnector<Depth>| Type | Description | |
|---|---|---|
options | PgliteDataConnectorOptions<Depth> | |
| returns | PgliteDataConnector<Depth> |
The connector automatically creates the necessary table and index structures on first use. By default, data is stored in a table named 'data' with columns for 'address' and 'atom', but these can be customized via the options parameter.
PGlite is an embedded PostgreSQL database that runs in-process (similar to SQLite), making it ideal for local-first applications in Node.js or browser environments with WASM.
Since
v0.0.0