Sandro Santilli
2fc22de21a
Send backend a CopyFail when no stream is defined to copy from
2013-01-16 12:41:14 +01:00
anton
c014096e0e
COPY TO/FROM native/libpq done. Looks like it works, but need to test
2013-01-06 12:06:26 -06:00
brianc
c5b804f5c4
fix reference to ssl parameters
2012-12-04 14:18:19 -06:00
bmc
9341efe669
allow options to pass to js ssl connection bindings
2012-09-10 21:40:41 -05:00
Bruno Harbulot
158562f3d1
Initial support for SSL/TLS connections.
2012-08-20 21:41:56 -05:00
brianc
fa80b4e3fa
make data conversion the same between native & javascript
2012-07-11 22:47:02 -05:00
brianc
7a2c428973
ignore writes to unwritable sockets - closes #130
2012-05-30 22:41:51 -05:00
Alexander Sulfrian
8730a31444
Merge remote branch 'upstream/master'
2011-11-19 00:35:21 +01:00
Alexander Sulfrian
916895639b
Merge remote branch 'upstream/master'
...
Conflicts:
lib/query.js
lib/types.js
test/unit/client/query-tests.js
test/unit/client/typed-query-results-tests.js
2011-11-18 21:12:28 +01:00
Christophe Macabiau
f3c8b972fe
query cancellation
2011-11-02 16:07:14 +01:00
Brian Dunavant
94dc7fd4e8
treat undefined values as NULL. Include test to verify.
2011-10-14 11:31:12 -04:00
brianc
06585d6e2c
require 'util' instead of 'sys'
2011-10-10 19:40:52 -05:00
brianc
b728186a7d
Merge branch 'master' of https://github.com/brianc/node-postgres
2011-10-03 23:14:09 -05:00
Homme Zwaagstra
21b597ef17
All errors are now instances of the built in Error class
...
This is a fix for issue #50 . It alters both the native binding and the
javascript binding to ensure that any errors returned by Postgresql
are returned to the client code as instances of the built in Error
class.
The test code has been updated to assert that this is the case. Rather
than run some individual tests the updated test code ensures this is
the case for *all* errors encountered during a test run.
2011-09-22 12:36:12 +01:00
brianc
cd4e95d88c
remove unused code
2011-09-16 00:13:22 -05:00
Alexander Sulfrian
207b7dbb2b
Merge remote branch 'upstream/master'
...
Conflicts:
lib/query.js
test/unit/client/typed-query-results-tests.js
2011-06-21 21:42:43 +02:00
brianc
526a6284f9
50x performance increase on javascript client prepared statement execution on linux!
2011-04-16 11:42:23 -05:00
Alexander Sulfrian
796b8dfadc
added option for using the binary format
2011-02-14 16:42:04 +01:00
Alexander Sulfrian
fa35c13658
Merge remote branch 'upstream/master'
...
Conflicts:
lib/query.js
2011-01-29 01:19:33 +01:00
Brian Carlson
ab76f648b8
removed last Buffer.copy from outgoing packet construction
2011-01-27 09:40:07 -06:00
Alexander Sulfrian
1e6124746c
conversion pg text to binary protocol started
2011-01-27 15:10:45 +01:00
brianc
f13b0ba35c
using same writer reference to improve performance
2011-01-01 12:40:45 -06:00
Brian Carlson
e61ec5dfed
unit test for portal suspended
2010-11-14 17:44:36 -06:00
brianc
0c777fafec
fix for strang \0 buffer encoding issue in node v0.3.0
2010-11-01 22:11:40 -04:00
brianc
0f926ca62e
refactored to increase performance
2010-10-31 18:36:35 -05:00
brianc
0d2d6b5107
Moved buffer list to test directory and replaced w/ slightly cleaner
...
"writer" for use in the library code. BufferList was always supposed
to be a test helper and the api is trash
2010-10-31 18:21:37 -05:00
brianc
2454d6b355
a bit of code cleanup
2010-10-31 17:58:32 -05:00
brianc
6764af30eb
sped up parser ~70% ( http://jsperf.com/case-v-method )
2010-10-31 17:46:33 -05:00
brianc
75da13a4b9
removed id from connection messages (simplify API)
2010-10-31 17:30:35 -05:00
Paul Collier
f5528fa7ed
propagate connection stream errors
2010-10-30 18:23:54 -07:00
bmc
cafded964e
support for 'emptyQuery' command
2010-10-29 21:33:53 -04:00
brianc
d38a7f5ed7
added tests to support noData & extra query scenarios but currently
...
failing...ignoring for now
2010-10-29 00:46:08 -05:00
brianc
f63659cbc5
parsing noData message
2010-10-29 00:02:08 -05:00
brianc
da8026df9d
prepared statements moved forward a good deal
2010-10-28 19:09:40 -05:00
brianc
104727fd87
simple prepared statements working!
2010-10-28 00:50:45 -05:00
brianc
c848a5ad92
added support for describe command
2010-10-28 00:27:08 -05:00
brianc
d927e7e3f5
changed Connection#startupMessage to Connection#startup
2010-10-24 21:28:10 -05:00
brianc
e89aa9c84c
changed Connection#passwordMessage to Connection#password
2010-10-24 21:26:18 -05:00
brianc
ec4078d508
renamed 'notificationResponse' to 'notification' for consistency
2010-10-24 14:45:07 -05:00
brianc
ee4a65b923
support for 'notice' messages
2010-10-24 14:43:25 -05:00
brianc
bcfbb535b8
full support for bind and execute
2010-10-24 13:46:50 -05:00
brianc
c176489348
add type IDs to parse command
2010-10-24 00:18:48 -05:00
brianc
09d8e5d1e7
renamed 'message' to 'payload'
2010-10-23 22:45:03 -05:00
brianc
16352f9156
parsing notificationResponse messages
2010-10-23 22:31:43 -05:00
brianc
3edb02aa67
big refactor, all tests passing
2010-10-23 20:26:24 -05:00
brianc
ed909cbc66
connection now handles ending
2010-10-23 19:28:57 -05:00
brianc
3662e6f4af
clear password using connection
2010-10-23 19:02:13 -05:00
brianc
5fdf25c31d
tests for separated connection
2010-10-23 17:36:04 -05:00
brianc
e61a04b0ae
begin breaking out connection functionality from client functionality
2010-10-23 16:34:20 -05:00