some cleanup on the initial spike

This commit is contained in:
brianc 2011-02-20 16:12:06 -06:00
parent 1dfe510abe
commit 643164d2f0
3 changed files with 5 additions and 2 deletions

View File

@ -1,2 +1,3 @@
//require the c++ bindings & export to javascript
var binding = require(__dirname + '/../build/default/binding');
module.exports = binding.Connection;
module.exports = binding;

2
lib/libpq.js Normal file
View File

@ -0,0 +1,2 @@
var binding = require(__dirname + '/../build/default/binding');
module.exports = binding.Connection;

View File

@ -1,5 +1,5 @@
var helper = require(__dirname + "/../test-helper");
var Connection = require(__dirname + "/../../lib/binding");
var Connection = require(__dirname + "/../../lib/libpq").Connection;
test('calling connect without params raises error', function() {
var con = new Connection();