@collection-storage/postgresql
v4.0.7
Published
PostgreSQL adaptor for collection-storage
Maintainers
Readme
Collection Storage PostgreSQL Connector
This is a database connector for collection-storage. See the main project's documentation for general usage.
Install dependency
npm install --save collection-storage @collection-storage/postgresqlFor synchronous access:
import '@collection-storage/postgresql';Or, for dynamic access (only loaded if / when used):
import { CollectionStorage } from 'collection-storage';
CollectionStorage.dynamic([
['postgresql', () => import('@collection-storage/postgresql')],
]);Connection String
postgresql://[username:password@]host[:port]/database[?options]Options can include ssl=true, sslcert=<cert-file-path>,
sslkey=<key-file-path>, sslrootcert=<root-file-path>. For other options, see
the config keys in the
pg-connection-string documentation.
