sails-disk
Advanced tools
Comparing version 0.10.2 to 0.10.3
@@ -101,46 +101,34 @@ /** | ||
// Fetch parent results | ||
db.select(parentIdentity, { | ||
where: criteria.where, | ||
limit: criteria.limit, | ||
skip: criteria.skip, | ||
sort: criteria.sort | ||
}, function (err, parentResults){ | ||
if (err) return cb(err); | ||
// Populate associated records for each parent result | ||
// (or do them all at once as an optimization, if possible) | ||
_runJoins({ | ||
// Populate associated records for each parent result | ||
// (or do them all at once as an optimization, if possible) | ||
_runJoins({ | ||
instructions: criteria, | ||
parentCollection: parentIdentity, | ||
parentResults: parentResults, | ||
/** | ||
* Find some records directly (using only this adapter) | ||
* from the specified collection. | ||
* | ||
* @param {String} collectionIdentity | ||
* @param {Object} criteria | ||
* @param {Function} cb | ||
*/ | ||
$find: function (collectionIdentity, criteria, cb) { | ||
return db.select(collectionIdentity, criteria, cb); | ||
}, | ||
instructions: criteria.joins, | ||
/** | ||
* Look up the name of the primary key field | ||
* for the collection with the specified identity. | ||
* | ||
* @param {String} collectionIdentity | ||
* @return {String} | ||
*/ | ||
$getPK: function (collectionIdentity) { | ||
if (!collectionIdentity) return; | ||
return db.getPKField(collectionIdentity); | ||
} | ||
}, cb); | ||
/** | ||
* Find some records directly (using only this adapter) | ||
* from the specified collection. | ||
* | ||
* @param {String} collectionIdentity | ||
* @param {Object} criteria | ||
* @param {Function} cb | ||
*/ | ||
$find: function (collectionIdentity, criteria, cb) { | ||
return db.select(collectionIdentity, criteria, cb); | ||
}, | ||
/** | ||
* Look up the name of the primary key field | ||
* for the collection with the specified identity. | ||
* | ||
* @param {String} collectionIdentity | ||
* @return {String} | ||
*/ | ||
$getPK: function (collectionIdentity) { | ||
if (!collectionIdentity) return; | ||
return db.getPKField(collectionIdentity); | ||
} | ||
}, cb); | ||
});// <find parent results> | ||
}, | ||
@@ -195,2 +183,2 @@ | ||
}; | ||
} | ||
} |
{ | ||
"name": "sails-disk", | ||
"version": "0.10.2", | ||
"version": "0.10.3", | ||
"description": "Persistent local-disk adapter for Sails.js / Waterline", | ||
@@ -36,3 +36,3 @@ "main": "lib/adapter.js", | ||
"async": "~0.2.9", | ||
"waterline-cursor": "~0.0.0" | ||
"waterline-cursor": "~0.0.3" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
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
30671
852
Updatedwaterline-cursor@~0.0.3