createSqlite3DataConnector
The createSqlite3DataConnector function creates a DataConnector that persists Atom data in a SQLite3 database table.
createSqlite3DataConnector<Depth>(options: Sqlite3DataConnectorOptions<Depth>): Sqlite3DataConnector<Depth>| Type | Description | |
|---|---|---|
options | Sqlite3DataConnectorOptions<Depth> | |
| returns | Sqlite3DataConnector<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.
This connector requires the 'sqlite3' npm package and is designed for Node.js environments. For browser-compatible SQLite, consider using PGlite instead.
Since
v0.0.0