Comparing version 0.2.2 to 0.2.3
@@ -330,3 +330,3 @@ /** | ||
}); | ||
r.db(self.database).table(model).insert(data, {upsert: true}).run(client, function (err, notice) { | ||
r.db(self.database).table(model).insert(data, {conflict: 'replace'}).run(client, function (err, notice) { | ||
self.pool.release(client); | ||
@@ -387,3 +387,3 @@ err = err || notice.first_error && new Error(notice.first_error); | ||
}); | ||
r.db(self.database).table(model).insert(data, {upsert: true}).run(client, function (err, m) { | ||
r.db(self.database).table(model).insert(data, {conflict: 'replace'}).run(client, function (err, m) { | ||
self.pool.release(client); | ||
@@ -691,2 +691,2 @@ err = err || m.first_error && new Error(m.first_error); | ||
return promise; | ||
} | ||
} |
{ | ||
"name": "caminte", | ||
"description": "ORM for every database: redis, mysql, neo4j, mongodb, rethinkdb, postgres, sqlite, tingodb", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Aleksej Gordejev", |
@@ -44,5 +44,26 @@ [![Build Status](https://travis-ci.org/biggora/caminte.png?branch=master)](https://travis-ci.org/biggora/caminte) | ||
$ npm install caminte-cli -g | ||
Create structure: | ||
[caminte-cli details.](https://github.com/biggora/caminte-cli) | ||
$ caminte -i -a mysql | ||
Create model: | ||
$ caminte -m User active:int name email password note:text created:date | ||
# with tests | ||
$ caminte -t -m User active:int name email password note:text created:date | ||
Create model and routes: | ||
$ caminte -c Post published:bool title content:text created:date | ||
# with tests | ||
$ caminte -t -c User active:int name email password note:text created:date | ||
Create model and routes from SQL dump: | ||
$ caminte -d dumpfile.sql | ||
[caminte-cli more details.](https://github.com/biggora/caminte-cli) | ||
## Overview | ||
@@ -49,0 +70,0 @@ |
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
698369
13775
267