From a4f7c5d45ae925e8cd802839b680ed5dff5663ca Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Mon, 16 Mar 2015 13:36:26 -0400 Subject: [PATCH] Import helper function --- lib/connection.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/connection.js b/lib/connection.js index c328339..d9a7183 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -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;