resolve-storage-postgresql
v0.23.2
Published
An adapter reSolve uses to store events in PostgreSQL.
Downloads
70
Maintainers
Readme
resolve-storage-postgresql
This package is a resolve-es
adapter for storing events using PostgreSQL 10.7.
Available Parameters
databaseName
- a name of a schema storing events.tableName
- a name of a table storing events.user
- a name of an user.password
- a password of an user.database
- a name of a database.host
- a host of a database server.port
- a port of a database server.
Usage
import createAdapter from 'resolve-storage-postgresql'
const adapter = createAdapter({
user: 'user',
password: 'password',
database: 'postgres',
host: 'localhost',
port: 5432,
databaseName: 'public',
tableName: 'events'
})