Skip to content

plotdb/sharedb-postgres

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sharedb-postgres

PostgreSQL database adapter for sharedb. This driver can be used both as a snapshot store and oplog.

Doesn't support queries (yet?).

Moderately experimental. (This drives Synaptograph's backend, and @nornagon hasn't noticed any issues so far.)

Usage

sharedb-postgres wraps native node-postgres, and it supports the same configuration options.

To instantiate a sharedb-postgres wrapper, invoke the module and pass in your PostgreSQL configuration as an argument. For example:

var db = require('sharedb-postgres')('postgres://localhost/mydb');
var backend = require('sharedb')({db: db})

Error codes

PostgreSQL errors are passed back directly.

About

PostgreSQL adapter for ShareDB. Original repo at github:share/sharedb-postgres.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%