rethinkdbdash
Advanced tools
Comparing version 1.11.3 to 1.11.4
@@ -105,3 +105,4 @@ var helper = require(__dirname+"/helper.js"); | ||
MAKE_OBJ: true, | ||
MAKE_ARRAY: true | ||
MAKE_ARRAY: true, | ||
JSON: true | ||
} | ||
@@ -108,0 +109,0 @@ |
@@ -18,2 +18,4 @@ var Promise = require("bluebird"); | ||
_r.row = new Term(_r).row(); | ||
// We need _r to create the term | ||
@@ -41,2 +43,3 @@ _r.monday = new Term(_r).monday(); | ||
_r.nextVarId = 1; | ||
@@ -259,3 +262,2 @@ return _r; | ||
r.prototype.row = new Term(this).row(); // That's safe because there is no argument in r.row(). | ||
r.prototype.count = new Term(this).expr({COUNT: true}); | ||
@@ -262,0 +264,0 @@ r.prototype.avg = function(field) { |
{ | ||
"name": "rethinkdbdash", | ||
"version": "1.11.3", | ||
"version": "1.11.4", | ||
"description": "A Node.js driver for RethinkDB with promises and a connection pool", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -79,3 +79,3 @@ rethinkdbdash | ||
Import rethinkdbdash: | ||
``` | ||
```js | ||
var r = require('rethinkdbdash')(options); | ||
@@ -87,2 +87,3 @@ ``` | ||
- the options for the connection pool, which can be: | ||
```js | ||
@@ -104,3 +105,3 @@ { | ||
Example with `yield` - 1: | ||
Example 1 with `yield`: | ||
```js | ||
@@ -117,3 +118,3 @@ try{ | ||
Example with `yield` - 2: | ||
Example 2 with `yield`: | ||
```js | ||
@@ -133,5 +134,5 @@ try{ | ||
Example `then` and `error`: | ||
Example with `then` and `error`: | ||
```js | ||
r.table("foo).run().then(function(connection) { | ||
r.table("foo").run().then(function(connection) { | ||
//... | ||
@@ -149,3 +150,3 @@ }).error(function(e) { | ||
If you do not want to use a connection pool, iniitialize rethinkdbdash with `{pool: false}` like that: | ||
``` | ||
```js | ||
var r = require('rethinkdbdash)({pool: false}); | ||
@@ -200,3 +201,3 @@ ``` | ||
``` | ||
```js | ||
var cursor = yield r.expr([1, 2, 3]).run() | ||
@@ -241,3 +242,3 @@ console.log(JSON.stringify(cursor)) // does *not* print [1, 2, 3] | ||
recomputing it if the query is re-run. | ||
`exprJSON`, internal method used by `insert`, is more efficient in the worst case (`O(n)`). | ||
`exprJSON`, internal method used by `insert`, is more efficient in the worst case. | ||
@@ -264,3 +265,3 @@ - Connection | ||
Tests are also being run on [wercker](http://wercker.com/): | ||
- Builds: [https://app.wercker.com/#applications/52dffe8ba4acb3ef16010ef8/tab](https://github.com/neumino/box-rethinkdbdash) | ||
- Builds: [https://app.wercker.com/#applications/52dffe8ba4acb3ef16010ef8/tab](https://app.wercker.com/#applications/52dffe8ba4acb3ef16010ef8/tab) | ||
- Box: | ||
@@ -267,0 +268,0 @@ - Github: [https://github.com/neumino/box-rethinkdbdash](https://github.com/neumino/box-rethinkdbdash) |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
325250
37
9592
266
71