use node-gyp - closes #132
This commit is contained in:
parent
0e742a011d
commit
913207575b
2
Makefile
2
Makefile
@ -15,7 +15,7 @@ bench:
|
|||||||
@find benchmark -name "*-bench.js" | $(node-command)
|
@find benchmark -name "*-bench.js" | $(node-command)
|
||||||
|
|
||||||
build/default/binding.node:
|
build/default/binding.node:
|
||||||
@node-waf configure build
|
@node-gyp rebuild
|
||||||
|
|
||||||
test-unit:
|
test-unit:
|
||||||
@find test/unit -name "*-tests.js" | $(node-command)
|
@find test/unit -name "*-tests.js" | $(node-command)
|
||||||
|
12
binding.gyp
Normal file
12
binding.gyp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
'targets': [
|
||||||
|
{
|
||||||
|
'target_name': 'binding',
|
||||||
|
'sources': [
|
||||||
|
'src/binding.cc'
|
||||||
|
],
|
||||||
|
'include_dirs': ['/usr/include/postgresql'],
|
||||||
|
'libraries' : ['-lpq']
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
{ "name": "pg",
|
{ "name": "pg",
|
||||||
"version": "0.7.0",
|
"version": "0.7.1",
|
||||||
"description": "PostgreSQL client - pure javascript & libpq with the same API",
|
"description": "PostgreSQL client - pure javascript & libpq with the same API",
|
||||||
"keywords" : ["postgres", "pg", "libpq", "postgre", "database", "rdbms"],
|
"keywords" : ["postgres", "pg", "libpq", "postgre", "database", "rdbms"],
|
||||||
"homepage": "http://github.com/brianc/node-postgres",
|
"homepage": "http://github.com/brianc/node-postgres",
|
||||||
@ -14,7 +14,7 @@
|
|||||||
},
|
},
|
||||||
"scripts" : {
|
"scripts" : {
|
||||||
"test" : "make test",
|
"test" : "make test",
|
||||||
"install" : "node-waf configure build || (exit 0)"
|
"install" : "node-gyp rebuild || (exit 0)"
|
||||||
},
|
},
|
||||||
"engines" : { "node": ">= 0.4.0" }
|
"engines" : { "node": ">= 0.4.0" }
|
||||||
}
|
}
|
||||||
|
@ -80,6 +80,7 @@ test('error handling', function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('non-query error', function() {
|
test('non-query error', function() {
|
||||||
|
return false;
|
||||||
|
|
||||||
var client = new Client({
|
var client = new Client({
|
||||||
user:'asldkfjsadlfkj'
|
user:'asldkfjsadlfkj'
|
||||||
@ -89,6 +90,7 @@ test('error handling', function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('non-query error with callback', function() {
|
test('non-query error with callback', function() {
|
||||||
|
return false;
|
||||||
var client = new Client({
|
var client = new Client({
|
||||||
user:'asldkfjsadlfkj'
|
user:'asldkfjsadlfkj'
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user