blob: cd4e1d5b4f4350ccb061d8db79eef99c0d60fc4c [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Defines the Collection interface, a subset of the MongoDB collection API.
'use strict';
var EventEmitter = require('events').EventEmitter;
var inherits = require('inherits');
inherits(Collection, EventEmitter);
module.exports = Collection;
// Collection interface. Collections emit 'change' events.
function Collection() {
EventEmitter.call(this);
}
Collection.prototype.find = function(q, opts, cb) {
throw new Error('not implemented');
};
Collection.prototype.insert = function(v, cb) {
throw new Error('not implemented');
};
Collection.prototype.remove = function(q, cb) {
throw new Error('not implemented');
};
Collection.prototype.update = function(q, opts, cb) {
throw new Error('not implemented');
};