1
0
mirror of https://github.com/danog/postgres.git synced 2024-11-26 20:15:02 +01:00
Commit Graph

46 Commits

Author SHA1 Message Date
Aaron Piotrowski
82e439c111
Add parser tests and fix some bugs 2017-12-18 00:11:48 -06:00
Aaron Piotrowski
ddb3b5638c
Update pool connection creation 2017-12-10 09:53:52 -06:00
Aaron Piotrowski
2d56d530cb
Fix code style 2017-12-02 19:56:40 -06:00
Aaron Piotrowski
b3ff31ec0e
Rename TupleResult to ResultSet
Matches name in amphp/mysql.
2017-12-02 19:35:49 -06:00
Aaron Piotrowski
df149524dc
Add QueryExecutionError for diagnostics access, fixes #5 2017-12-01 10:55:58 -06:00
Aaron Piotrowski
e709a1cb04
Replace getConnection() with extractConnection() 2017-11-22 20:34:08 -06:00
Aaron Piotrowski
a8d940dea0
Change execute() from variadic to accepting an array 2017-11-17 21:33:49 -06:00
Aaron Piotrowski
82aa0ec54f
Add option for array or object result 2017-11-16 09:43:18 -06:00
Aaron Piotrowski
7a8358ee69
Swap test query order
Temp fix for travis issues.
2017-11-06 10:18:04 -06:00
Aaron Piotrowski
0deb3e4f08
Increase coverage 2017-11-05 23:06:17 -06:00
Aaron Piotrowski
7083d18461
Fix issue with discarded result sets; add related test 2017-11-05 18:50:52 -06:00
Aaron Piotrowski
3b1ed859ea
Use unbuffered connection for pq tests 2017-11-05 18:37:15 -06:00
Aaron Piotrowski
a723281a95
Combine Connection specific tests 2017-11-05 18:14:22 -06:00
Aaron Piotrowski
dc47cdcccc
Add extension specific pool tests 2017-11-05 18:12:12 -06:00
Aaron Piotrowski
88808aa654
Add isAlive() method to connection handles
Used in pool to drop dead connections from the pool automatically.
2017-11-05 15:38:17 -06:00
Aaron Piotrowski
eb9546b20d
Prevent reuse of connection after prepare
Prevents overlap of commands at the cost of a long-held prepare may block commands.
2017-08-01 23:35:48 -05:00
Aaron Piotrowski
202caf8552
Add Link interface; make PooledConnection internal
Cleaned up interfaces. Users can declare Executor or Link depending on their needs.
2017-08-01 23:01:55 -05:00
Aaron Piotrowski
2f0017c7a4
Add Handle interface and Pool::getConnection()
Adds quoteString() and quoteName() methods. Pool::getConnection() returns a promise that resolves to an instance of PooledConnection.
2017-08-01 00:38:12 -05:00
Aaron Piotrowski
588d4ff4c6
Examine result resource after prepare
Fixes #2.
2017-07-31 00:34:05 -05:00
Aaron Piotrowski
0c3b70633c
Reuse statement handles
Allows the same query to be prepared multiple times on a single connection without error or performance penalty.
2017-07-27 23:20:46 -05:00
Aaron Piotrowski
65ede1b786
Allow simultaneous querys again and deallocate pgsql statements
Deallocating queries without potential race conditions required allowing simultaneous queries.
2017-07-27 00:32:34 -05:00
Aaron Piotrowski
60d57ad585
Delay notifications 2017-06-21 00:32:52 -05:00
Aaron Piotrowski
202c5916f2
Consume leftover results after test 2017-06-21 00:32:29 -05:00
Aaron Piotrowski
24fe594dd6
Minor executor changes and test updates 2017-06-20 23:04:54 -05:00
Aaron Piotrowski
fac9041cac
Update and fix code styles
Changed to match code styles used in other Amp packages.
2017-06-20 22:59:42 -05:00
Aaron Piotrowski
663b3ae9d4 Use TimeoutCancellationToken in connect tests
If the test hangs, the cancellation token will cancel the connect attempt.
2017-06-18 00:15:36 -05:00
Aaron Piotrowski
b9daaed1d9 Separate connect tests 2017-06-14 22:46:25 -05:00
Aaron Piotrowski
fe659ea5e6 Error on multiple calls to listen on same channel 2017-06-13 00:34:20 -05:00
Aaron Piotrowski
b72bd95bae Throw Error for invalid connection count 2017-06-04 23:42:35 -05:00
Aaron Piotrowski
5591f46daa Connect cancellation 2017-06-04 23:42:18 -05:00
Aaron Piotrowski
85df59ff9f Drop table before test 2017-05-26 16:26:25 -05:00
Aaron Piotrowski
e0a842bad7 Disallow multiple operations on single connection
Pools can still be used for concurrent ops.
2017-05-26 13:14:04 -05:00
Aaron Piotrowski
e1502aaa0b Update to PHPUnit 6 2017-05-26 10:47:44 -05:00
Bob Weinand
7c00cf1fb0 Refix style fixed code 2017-05-17 18:14:12 +02:00
Aaron Piotrowski
2776a0344e Update code styles 2017-05-15 23:28:37 -05:00
Aaron Piotrowski
a276d17be7 Update for Amp ^2 2017-05-15 23:14:02 -05:00
Aaron Piotrowski
c11beb79a2 Update for Amp changes
Listener → StreamIterator
Promise\map() removed
2017-04-14 18:32:57 -05:00
Aaron Piotrowski
04a6463888 Update for async-interop merge and other Amp changes 2017-03-17 10:17:24 -05:00
Aaron Piotrowski
2a1c96761b Fix connect() methods
Timeout wasn't being properly used and the implementation assumed single watchers on sockets, so it was more complex than needed.
2017-02-15 17:36:10 -06:00
Aaron Piotrowski
1e3874856d Update for async-interop namespace change and Amp name changes 2017-01-18 11:08:45 -06:00
Aaron Piotrowski
9ccadb17bd next() → advance() 2016-12-30 00:10:43 -06:00
Aaron Piotrowski
1326673ede Update for removal of Amp loop wrapper functions 2016-12-29 23:21:48 -06:00
Aaron Piotrowski
5d687a6cb5 Drop strict types 2016-12-29 23:21:17 -06:00
Aaron Piotrowski
0fb3f9bfdb Awaitable → Promise 2016-11-15 11:06:21 -06:00
Aaron Piotrowski
87809b70d1 Test and formatting updates 2016-09-20 00:47:16 -05:00
Aaron Piotrowski
caf829a48c Initial commit 2016-09-14 09:27:39 -05:00