Skip to content

Commit

Permalink
Udpated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
arvindr21 committed Jun 26, 2014
1 parent 9b196aa commit abde101
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@ This will check for a directory at given path, if it does not exits, diskDB will

If the directory exists but the file/collection does not exist, diskDB will create it for you.

**Note** : If you have manually created an empty JSON file, please make sure that it contains at least an empty array.

```js
[]
```
Else it will throw an error like

```bash
undefined:0

^
SyntaxError: Unexpected end of input
```

### Load Collections
Alternatively you can also load collections like

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "diskdb",
"version": "0.1.11",
"version": "0.1.12",
"main": "lib/diskdb.js",
"description": "A Light Weight Disk based JSON Database with a MongoDB like API",
"homepage": "http://arvindr21.github.io/diskDB",
Expand Down

0 comments on commit abde101

Please sign in to comment.