Skip to content

Commit

Permalink
upgrade dwn-sdk-js, add to README about POSTGRES setting
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Apr 4, 2024
1 parent 24c46c7 commit 48f9fdb
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 24 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,26 @@ const dwn = await Dwn.create({ messageStore, dataStore, eventLog });

## PostgreSQL

NOTE: PostgreSQL requires setting the `LC_COLLATE` and `LC_CTYPE`to `C` during database creation.
examples:

When using `docker` include the following option
```
POSTGRES_INITDB_ARGS='--lc-collate=C --lc-ctype=C'
```

Or when creating the database.
```
CREATE DATABASE dwn_data_store_dev
WITH ENCODING='UTF8'
...
LC_COLLATE='C'
LC_CTYPE='C'
...
```


```typescript
import pg from 'pg';
import Cursor from 'pg-cursor';
Expand Down
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tbd54566975/dwn-sql-store",
"version": "0.2.12",
"version": "0.2.13",
"description": "SQL backed implementations of DWN MessageStore, DataStore, and EventLog",
"type": "module",
"license": "Apache-2.0",
Expand All @@ -21,7 +21,7 @@
"react-native": "./dist/esm/src/main.js",
"dependencies": {
"@ipld/dag-cbor": "^9.0.5",
"@tbd54566975/dwn-sdk-js": "0.2.21",
"@tbd54566975/dwn-sdk-js": "0.2.22",
"kysely": "0.26.3",
"multiformats": "12.0.1",
"readable-stream": "4.4.2"
Expand Down

0 comments on commit 48f9fdb

Please sign in to comment.