This package is an event store adapter used to store events in PostgreSQL 10.7.
databaseName
- the name of a schema used to store events.eventsTableName
- the name of a table used to store events.user
- the user name.password
- a user's password.database
- the name of a database.host
- a database server's host name.port
- a database server's port.
import createAdapter from '@resolve-js/eventstore-postgresql'
const adapter = createAdapter({
user: 'user',
password: 'password',
database: 'postgres',
host: 'localhost',
port: 5432,
databaseName: 'public',
eventsTableName: 'events',
})