Created
January 30, 2011 00:53
-
-
Save tanepiper/802384 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (settings) -> | |
cradle = require('cradle') | |
return new(cradle.Connection)(settings.database.host, settings.database.port, settings.database.options) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
module.exports = function(settings) { | |
var cradle; | |
cradle = require('cradle'); | |
return new cradle.Connection(settings.database.host, settings.database.port, settings.database.options); | |
}; | |
}).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment