Skip to content

Commit 107dc61

Browse files
committed
Remove commented-out query code, just fall back to the default 'not implemented'
1 parent 346fe8c commit 107dc61

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

index.js

-29
Original file line numberDiff line numberDiff line change
@@ -199,35 +199,6 @@ PostgresDB.prototype.getOps = function(collection, id, from, to, callback) {
199199
})
200200
};
201201

202-
// The memory database query function returns all documents in a collection
203-
// regardless of query by default
204-
/*
205-
PostgresDB.prototype.query = function(collection, query, fields, options, callback) {
206-
var db = this;
207-
process.nextTick(function() {
208-
var collectionDocs = db.docs[collection];
209-
var snapshots = [];
210-
for (var id in collectionDocs || {}) {
211-
var snapshot = db._getSnapshotSync(collection, id);
212-
snapshots.push(snapshot);
213-
}
214-
try {
215-
var filtered = db._querySync(snapshots, query, options);
216-
callback(null, filtered);
217-
} catch (err) {
218-
callback(err);
219-
}
220-
});
221-
};
222-
223-
// For testing, it may be useful to implement the desired query language by
224-
// defining this function
225-
PostgresDB.prototype._querySync = function(snapshots, query, options) {
226-
return snapshots;
227-
};
228-
*/
229-
230-
231202
function PostgresSnapshot(id, version, type, data, meta) {
232203
this.id = id;
233204
this.v = version;

0 commit comments

Comments
 (0)