Skip to content

Commit 9d88e6a

Browse files
authored
Merge pull request #1 from smalllicheng/master
update package name
2 parents f8890b1 + 2d9aa16 commit 9d88e6a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ Moderately experimental. (This drives [Synaptograph](https://www.synaptograph.co
1212
This is a fork from the [original `sharedb-postgres`](https://github.com/share/sharedb-postgres) and its relative forks (see [billwashere](https://github.com/billwashere/sharedb-postgres-jsonb), [zbryikt](https://github.com/zbryikt/sharedb-postgres-jsonb). It seems to have been not maintained for a long time since 2018, Thus we decide to fork it and maintain it as `@plotdb/sharedb-postgre`.
1313

1414

15+
## Installation
16+
17+
```cmd
18+
npm i @plotdb/sharedb-postgres
19+
```
20+
21+
1522
## Requirements
1623

1724
Due to the fix to resolve [high concurency issues](https://github.com/share/sharedb-postgres/issues/1) Postgres 9.5+ is now required.
@@ -42,7 +49,7 @@ PostgreSQL configuration as an argument or use environmental arguments.
4249
For example using environmental arugments:
4350

4451
```js
45-
var db = require('sharedb-postgres')();
52+
var db = require('@plotdb/sharedb-postgres')();
4653
var backend = require('sharedb')({db: db})
4754
```
4855

@@ -55,7 +62,7 @@ PGUSER=dbuser PGPASSWORD=secretpassword PGHOST=database.server.com PGDATABASE=m
5562
Example using an object
5663

5764
```js
58-
var db = require('sharedb-postgres')({host: 'localhost', database: 'mydb'});
65+
var db = require('@plotdb/sharedb-postgres')({host: 'localhost', database: 'mydb'});
5966
var backend = require('sharedb')({db: db})
6067
```
6168

0 commit comments

Comments
 (0)