UNPKG

graph-acl

Version:

An ACL module using Graph databases.

56 lines (31 loc) 808 B
/** Connector Interface. This is a skeleton for a Connector to a Graph Database. See Neo4j Connector for an example */ function Connector(db){ this.db = db; } Connector.prototype.createNode = function () { }; Connector.prototype.updateNode = function () { }; Connector.prototype.deleteNode = function () { }; Connector.prototype.addRelationship = function () { }; Connector.prototype.updateRelationship = function () { }; Connector.prototype.removeRelationship = function () { }; Connector.prototype.addProperty = function () { }; Connector.prototype.updateProperty = function () { }; Connector.prototype.removeProperty = function () { }; Connector.prototype.addLabel = function () { }; Connector.prototype.removeLabel = function () { }; exports = module.exports = Connector;