PostgreSQL driver for multidatastore, a library enabling multiple data stores (e.g., databases) to be accessed through a unified interface. Version 3.0.1 is the latest release. This package provides the PostgreSQL implementation, supporting standard SQL operations within the multidatastore framework. Release cadence is ad-hoc, with no recent updates. It is a thin wrapper over connect-pg-simple and pg-pool, primarily used in Node.js environments with PostgreSQL.
npm install multidatastore-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates instantiating a PostgresStore with a pg pool, setting and getting a key-value pair.
Use import syntax or upgrade to ESM-compatible environment.
Create a pg.Pool instance and pass it to the constructor.
Use async/await or .then() for all store operations.
Create a pg.Pool and pass it: new PostgresStore(pool)
Run npm install multidatastore-postgres and use import (ESM) syntax.
Use import type { PoolConfig } from 'multidatastore-postgres'.