thinodium
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -114,2 +114,18 @@ "use strict"; | ||
/** | ||
* Get all documents. | ||
* | ||
* @param {*} id Primary key value of document. | ||
* | ||
* @return {Promise} resolves to `Document` if exists, `null` otherwise. | ||
*/ | ||
getAll () { | ||
return this.rawGetAll() | ||
.then((docs) => { | ||
return this.wrapRaw(docs); | ||
}); | ||
} | ||
/** | ||
* Insert document. | ||
@@ -150,2 +166,15 @@ * | ||
/** | ||
* Get all documents. | ||
* | ||
* @return {Promise} resolves to array of `Document`s. | ||
*/ | ||
rawGetAll () { | ||
return Q.reject(new Error('Not yet implemented')); | ||
} | ||
/** | ||
@@ -152,0 +181,0 @@ * Insert new record. |
{ | ||
"name": "thinodium", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Light-weight, pluggable ODM for Node.js. Supports RethinkDB, etc", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# Thinodium | ||
# ![Thinodium](https://hiddentao.github.io/thinodium/img/logo.svg) | ||
@@ -3,0 +3,0 @@ [![Build Status](https://travis-ci.org/hiddentao/thinodium.svg?branch=master)](http://travis-ci.org/hiddentao/thinodium) |
22904
542