Open btimby opened 3 years ago
This seems like a useful function:
https://github.com/btimby/nimtok/blob/23c21a2983d3da491bf4521a9c16cee5ea22b514/src/plugins/orbitdb.js#L52
It is necessary because:
open()
create()
The above are my observations. The API docs do not show that options are passed to open() or any of the db specific functions like keyvalue().
keyvalue()
This could be implemented a couple ways.
This seems like a useful function:
https://github.com/btimby/nimtok/blob/23c21a2983d3da491bf4521a9c16cee5ea22b514/src/plugins/orbitdb.js#L52
It is necessary because:
open()
a database, which will create it, but options are not accepted.create()
a database, but if it exists an error is thrown, unless overwrite is enabled.create()
a database (with options) oropen()
it if it exists.The above are my observations. The API docs do not show that options are passed to
open()
or any of the db specific functions likekeyvalue()
.This could be implemented a couple ways.
open()
and db specific functions likekeyvalue()
.