(tested) change DataStorage interface to accept byte array as value

This commit is contained in:
Lawrence, Rendall
2022-06-23 21:01:05 +03:00
parent 4468794de1
commit 0fd0e06360
11 changed files with 64 additions and 75 deletions

View File

@@ -43,9 +43,12 @@ Implementation expects next data types:
* peer creation date and time - `timestamp`
* Table for arbitrary data (KV store):
* context - string (`varchar`, `character varying`)
* name - string (`varchar`, `character varying`)
* name - byte array (`bytea`)*
* value - byte array (`bytea`)
(*) in KV table `name` present as byte array because of possibility
to place hash as _raw_ string, which is not supported by PostgreSQL.
Sample script to create tables:
```sql