mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-26 23:50:00 -07:00
(tested) change DataStorage interface to accept byte array as value
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user