Comparing version 0.2.5 to 0.2.6
115
all.js
@@ -1,54 +0,65 @@ | ||
require('./filtering/equal'); | ||
require('./filtering/notEqual'); | ||
require('./filtering/not'); | ||
require('./filtering/lessThan'); | ||
require('./filtering/lessThanOrEqual'); | ||
require('./filtering/greaterThan'); | ||
require('./filtering/greaterThanOrEqual'); | ||
require('./filtering/between'); | ||
require('./filtering/in'); | ||
require('./filtering/startsWith') | ||
require('./filtering/endsWith') | ||
require('./filtering/contains') | ||
require('./filtering/exists'); | ||
require('./filtering/or'); | ||
require('./filtering/and'); | ||
require('./filtering/orAlternative'); | ||
require('./filtering/andAlternative'); | ||
require('./filtering/subFilter'); | ||
require('./filtering/compositeFilter'); | ||
run('./connect'); | ||
run('./filtering/equal'); | ||
run('./filtering/notEqual'); | ||
run('./filtering/not'); | ||
run('./filtering/lessThan'); | ||
run('./filtering/lessThanOrEqual'); | ||
run('./filtering/greaterThan'); | ||
run('./filtering/greaterThanOrEqual'); | ||
run('./filtering/between'); | ||
run('./filtering/in'); | ||
run('./filtering/startsWith') | ||
run('./filtering/endsWith') | ||
run('./filtering/contains') | ||
run('./filtering/iStartsWith') | ||
run('./filtering/iEndsWith') | ||
run('./filtering/iContains') | ||
run('./filtering/exists'); | ||
run('./filtering/or'); | ||
run('./filtering/and'); | ||
run('./filtering/orAlternative'); | ||
run('./filtering/andAlternative'); | ||
run('./filtering/subFilter'); | ||
run('./filtering/compositeFilter'); | ||
require('./getById'); | ||
require('./tryGetFirst'); | ||
require('./join'); | ||
require('./hasMany'); | ||
require('./hasOne'); | ||
require('./compositeKeys'); | ||
require('./getByIdEager'); | ||
require('./tryGetFirstEager'); | ||
require('./toDto'); | ||
require('./toDtoWithStrategy'); | ||
require('./toJSON'); | ||
require('./toJSONWithStrategy'); | ||
require('./getMany'); | ||
require('./getManyLazy'); | ||
require('./getManyEager'); | ||
require('./manyToDto'); | ||
require('./manyToDtoWithStrategy'); | ||
require('./manyToJSON'); | ||
require('./manyToJSONWithStrategy'); | ||
require('./update'); | ||
require('./insert'); | ||
require('./defaultValues'); | ||
require('./conventions'); | ||
require('./updateJoin'); | ||
require('./updateHasOne'); | ||
require('./updateHasMany'); | ||
require('./delete'); | ||
require('./cascadeDelete'); | ||
//todo | ||
/*require('./defaultValues'); | ||
require('./dbNull'); | ||
require('./columnDiscriminator'); | ||
require('./formulaDiscriminator');*/ | ||
run('./getById'); | ||
run('./tryGetFirst'); | ||
run('./join'); | ||
run('./hasMany'); | ||
run('./hasOne'); | ||
run('./compositeKeys'); | ||
run('./getByIdEager'); | ||
run('./tryGetFirstEager'); | ||
run('./toDto'); | ||
run('./toDtoWithStrategy'); | ||
run('./toJSON'); | ||
run('./toJSONWithStrategy'); | ||
run('./getMany'); | ||
run('./getManyLazy'); | ||
run('./getManyEager'); | ||
run('./manyToDto'); | ||
run('./manyToDtoWithStrategy'); | ||
run('./manyToJSON'); | ||
run('./manyToJSONWithStrategy'); | ||
run('./update'); | ||
run('./insert'); | ||
run('./defaultValues'); | ||
run('./conventions'); | ||
run('./updateJoin'); | ||
run('./updateHasOne'); | ||
run('./updateHasMany'); | ||
run('./delete'); | ||
run('./bulkDelete'); | ||
run('./cascadeDelete'); | ||
run('./bulkCascadeDelete'); | ||
var promise; | ||
function run(module) { | ||
if (promise) | ||
promise = promise.then(function() { | ||
return require(module); | ||
}); | ||
else | ||
promise = require(module); | ||
} |
@@ -26,3 +26,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -29,0 +29,0 @@ .then(getById) |
@@ -20,3 +20,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -23,0 +23,0 @@ .then(getOrder) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(insert) |
@@ -5,2 +5,3 @@ var fs = require('fs'); | ||
var pg = require('pg.js'); | ||
var mySql = require('mysql'); | ||
@@ -7,0 +8,0 @@ //var drop = "DROP TABLE IF EXISTS _compositeOrderLine;DROP TABLE IF EXISTS _compositeOrder;DROP TABLE IF EXISTS _deliveryAddress;DROP TABLE IF EXISTS _orderLine;DROP TABLE IF EXISTS _order;DROP TABLE IF EXISTS _customer;" |
@@ -27,3 +27,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -30,0 +30,0 @@ .then(insert) |
@@ -15,3 +15,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -18,0 +18,0 @@ .then(getById) |
@@ -13,3 +13,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -16,0 +16,0 @@ .then(getFilteredCustomers) |
@@ -13,3 +13,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -16,0 +16,0 @@ .then(getFilteredCustomers) |
@@ -12,3 +12,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -15,0 +15,0 @@ .then(getFilteredCustomers) |
@@ -30,3 +30,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -33,0 +33,0 @@ .then(getOrders) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getFilteredCustomers) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getFilteredCustomers) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getFilteredCustomers) |
@@ -20,3 +20,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -23,0 +23,0 @@ .then(getOrders) |
@@ -12,3 +12,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -15,0 +15,0 @@ .then(getFilteredCustomers) |
@@ -12,3 +12,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -15,0 +15,0 @@ .then(getFilteredCustomers) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getFilteredCustomers) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getFilteredCustomers) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getFilteredCustomers) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getFilteredCustomers) |
@@ -12,3 +12,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -15,0 +15,0 @@ .then(getFilteredCustomers) |
@@ -12,3 +12,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -15,0 +15,0 @@ .then(getFilteredCustomers) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getFilteredCustomers) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getFilteredCustomers) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getFilteredCustomers) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getFilteredCustomers) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getFilteredCustomers) |
@@ -20,3 +20,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -23,0 +23,0 @@ .then(getOrders) |
@@ -15,3 +15,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -18,0 +18,0 @@ .then(getById) |
@@ -17,3 +17,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -20,0 +20,0 @@ .then(getOrderWithCustomer) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getAllCustomers) |
@@ -20,3 +20,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -23,0 +23,0 @@ .then(getAllOrders) |
@@ -20,3 +20,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -23,0 +23,0 @@ .then(getAllOrders) |
@@ -19,3 +19,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -22,0 +22,0 @@ .then(getOrder) |
@@ -20,3 +20,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -23,0 +23,0 @@ .then(getOrder) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(insert) |
@@ -17,3 +17,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -20,0 +20,0 @@ .then(getOrder) |
@@ -36,3 +36,3 @@ var inspect = require('util').inspect; | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -39,0 +39,0 @@ .then(getOrders) |
@@ -35,3 +35,3 @@ var inspect = require('util').inspect; | ||
var db = rdb('postgres://postgres:postgres@localhost/test'); | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -38,0 +38,0 @@ .then(getOrders) |
@@ -35,3 +35,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -38,0 +38,0 @@ .then(getOrders) |
@@ -34,3 +34,3 @@ var rdb = require('rdb'), | ||
var db = rdb('postgres://postgres:postgres@localhost/test'); | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -37,0 +37,0 @@ .then(getOrders) |
{ | ||
"name": "rdb-demo", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"main": "index.js", | ||
"title": "rdb-demo", | ||
"description": "ORM examples for npmjs.org/package/rdb", | ||
"keywords": ["orm","sql","postgres","pg","rdb"], | ||
"keywords": ["orm","sql","mySql","mysql","postgres","pg","rdb"], | ||
"dependencies": { | ||
"rdb": "0.3.7", | ||
"rdb": "0.3.8", | ||
"promise": "5.0.0", | ||
"pg.js": "3.1.0" | ||
"pg.js": "3.1.0", | ||
"mysql": "2.5.1" | ||
}, | ||
@@ -13,0 +14,0 @@ "repository" : { |
@@ -22,3 +22,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -25,0 +25,0 @@ .then(insertOrders) |
@@ -35,3 +35,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -38,0 +38,0 @@ .then(getOrder) |
@@ -35,3 +35,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -38,0 +38,0 @@ .then(getOrder) |
@@ -35,3 +35,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -38,0 +38,0 @@ .then(getOrder) |
@@ -35,3 +35,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -38,0 +38,0 @@ .then(getOrder) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(tryGetFirst) |
@@ -18,3 +18,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -21,0 +21,0 @@ .then(tryGetFirstOrderWithCustomer) |
@@ -11,3 +11,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -14,0 +14,0 @@ .then(getById) |
@@ -20,3 +20,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -23,0 +23,0 @@ .then(insertOrderLine1) |
@@ -20,3 +20,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -23,0 +23,0 @@ .then(insertDeliveryAddress) |
@@ -18,3 +18,3 @@ var rdb = require('rdb'), | ||
resetDemo() | ||
module.exports = resetDemo() | ||
.then(db.transaction) | ||
@@ -21,0 +21,0 @@ .then(getById) |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
156977
115
4234
4
6
+ Addedmysql@2.5.1
+ Addedbignumber.js@1.4.1(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedmysql@2.5.02.5.1(transitive)
+ Addedrdb@0.3.8(transitive)
+ Addedreadable-stream@1.1.14(transitive)
+ Addedrequire-all@0.0.8(transitive)
+ Addedstring_decoder@0.10.31(transitive)
- Removedrdb@0.3.7(transitive)
Updatedrdb@0.3.8