Docs improvements (#702)

Docs improvements
This commit is contained in:
Richard Littauer 2019-10-07 11:17:33 -04:00 committed by GitHub
commit d2b7d0fb5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
API.md
View File

@ -95,6 +95,15 @@ const db = await orbitdb.keyvalue('profile')
## Public Instance Methods
Before starting, you should know that OrbitDB has different types of databases. Each one satisfies a different purpose. The databases that you can create are:
* [log](https://github.com/orbitdb/orbit-db/blob/master/API.md#orbitdblognameaddress): an imutable (write only) log database. Useful for transactions lists.
* [feed](https://github.com/orbitdb/orbit-db/blob/master/API.md#orbitdbfeednameaddress): a mutable log database. Useful for blog comments.
* [keyvalue](https://github.com/orbitdb/orbit-db/blob/master/API.md#orbitdbkeyvaluenameaddress): Useful for loading data from keywords or an id.
* [docs](https://github.com/orbitdb/orbit-db/blob/master/API.md#orbitdbdocsnameaddress-options): a JSON documents database. Useful for user data or other structured data.
* [counter](https://github.com/orbitdb/orbit-db/blob/master/API.md#orbitdbcounternameaddress): Useful for ordered data (like an ordered list or a playlist.)
### orbitdb.create(name, type, [options])
> Creates and opens an OrbitDB database.