waterline-dirty
Advanced tools
Comparing version 0.0.05 to 0.0.0501
@@ -99,3 +99,3 @@ /*--------------------------------------------------------------- | ||
describe: function(collectionName, cb) { | ||
this.log(" DESCRIBING :: " + collectionName); | ||
this.log.verbose(" DESCRIBING :: " + collectionName); | ||
var schema = this.db.get(this.config.schemaPrefix + collectionName); | ||
@@ -108,3 +108,3 @@ var attributes = schema && schema.attributes; | ||
define: function(collectionName, attributes, cb) { | ||
this.log(" DEFINING " + collectionName, { | ||
this.log.verbose(" DEFINING " + collectionName, { | ||
as: schema | ||
@@ -132,3 +132,3 @@ }); | ||
var self = this; | ||
self.log(" DROPPING " + collectionName); | ||
self.log.verbose(" DROPPING " + collectionName); | ||
return self.db.rm(self.config.dataPrefix + collectionName, function(err) { | ||
@@ -146,3 +146,3 @@ if(err) return cb("Could not drop collection!"); | ||
create: function(collectionName, values, cb) { | ||
this.log(" CREATING :: " + collectionName, values); | ||
this.log.verbose(" CREATING :: " + collectionName, values); | ||
values = values || {}; | ||
@@ -201,3 +201,3 @@ var dataKey = this.config.dataPrefix + collectionName; | ||
update: function(collectionName, options, values, cb) { | ||
this.log(" UPDATING :: " + collectionName, { | ||
this.log.verbose(" UPDATING :: " + collectionName, { | ||
options: options, | ||
@@ -222,12 +222,12 @@ values: values | ||
_.each(data, function(row, index) { | ||
my.log('matching row/index', { | ||
my.log.verbose('matching row/index', { | ||
row: row, | ||
index: index | ||
}); | ||
my.log("against", criteria); | ||
my.log("with outcome", matchSet(row, criteria)); | ||
my.log.verbose("against", criteria); | ||
my.log.verbose("with outcome", matchSet(row, criteria)); | ||
if(matchSet(row, criteria)) resultIndices.push(index); | ||
}); | ||
this.log("filtered indices::", resultIndices, 'criteria', criteria); | ||
this.log.verbose("filtered indices::", resultIndices, 'criteria', criteria); | ||
@@ -247,3 +247,3 @@ // Update value(s) | ||
destroy: function(collectionName, options, cb) { | ||
this.log(" DESTROYING :: " + collectionName, options); | ||
this.log.verbose(" DESTROYING :: " + collectionName, options); | ||
@@ -250,0 +250,0 @@ var criteria = options.where; |
{ | ||
"name": "waterline-dirty", | ||
"version": "0.0.05", | ||
"version": "0.0.0501", | ||
"description": "Waterline adapter for felixge's node-dirty", | ||
@@ -5,0 +5,0 @@ "main": "DirtyAdapter.js", |
13637