Skip to content

Commit

Permalink
Reword
Browse files Browse the repository at this point in the history
  • Loading branch information
jannyHou committed May 4, 2017
1 parent 06e8b9f commit 24ed247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ This part will be done after we complete the `_rev` property refactor.

Unlike relational db or mongodb, Cloudant doesn't have a concept as 'table' or 'collection', data in a Cloudant database are all stored as documents.

The connector uses a design document to represent a Loopback model, and other non-design(non-design might not be the best word here, appreciate more ideas about how to describe it) documents to represent model instances.
The connector uses a design document to represent a Loopback model, and common documents to represent model instances.

The following is a comparison among different databases:

| | Model | Model Property | Model Instance |
|---------------|------------------------------|---------------------------------------|------------------------|
| Relational DB | table | column in table | row in table |
| Mongodb | collection | createIndex if property.index is true | document in collection |
| Cloudant | Design documents in database | NOT stored in doc | documents in database |
| Cloudant | Design documents in database | NOT stored in document | common documents in database |

To create a model, the connector creates a design document with the following config:

Expand Down

0 comments on commit 24ed247

Please sign in to comment.