Skip to content

Commit

Permalink
Import helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 committed Mar 16, 2015
1 parent 7a001e3 commit a4f7c5d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,13 @@ Connection.prototype.Model = function (name) {
return new Collection(this, name);
};

/**
* Helper if you need to import stuff from the cassandra-driver directly.
* @param {String} path
* @return {*}
*/
Connection.import = function (path) {
return require('cassandra-driver/' + path);
};

module.exports = Connection;

0 comments on commit a4f7c5d

Please sign in to comment.