consequent-postgres

1.3.1 • Public • Published

Consequent-Postgres

Provides both actor and event storage adapters for Postgres.

Note: This approach does not support siblings and is best suited for use with microservice architectures where services own their own database or systems where writes are behind a consistent hash on record/actor id.

Approach

Snapshots, events and event packs are all stored in actor/entity-specific tables.

Usage

var consequentFn = require( "consequent" );
var stores = require( "consequent-postgres" )(
	"postgresql://dbuser:secretpassword@database.server.com:3211/mydb"
);

var consequent = consequentFn( {
	actorStore: stores.actor,
	eventStore: stores.event,
	searchStore: stores.search
} );

Readme

Keywords

Package Sidebar

Install

npm i consequent-postgres

Weekly Downloads

1

Version

1.3.1

License

MIT

Unpacked Size

102 kB

Total Files

33

Last publish

Collaborators

  • arobson