Aaron Piotrowski
|
4fc6425fd8
|
Only mark connection busy on transaction
Underlying handle will take care of ordering other operations.
|
2017-11-05 11:24:38 -06:00 |
|
Aaron Piotrowski
|
32369079e6
|
Drop Operation trait
Replaced with CompletionQueue.
|
2017-08-03 00:42:53 -05:00 |
|
Aaron Piotrowski
|
f363b05b10
|
Automatically discard unconsumed rows
Rows are automatically read and discarded when the tuple result is destructed.
|
2017-08-03 00:17:38 -05: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
|
1f146e31f6
|
Fix notification loop if listener unset
|
2017-08-01 23:26:27 -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
|
b76ff0f5d9
|
Unset statement cache if prepare fails
|
2017-07-31 00:52:56 -05:00 |
|
Aaron Piotrowski
|
588d4ff4c6
|
Examine result resource after prepare
Fixes #2.
|
2017-07-31 00:34:05 -05:00 |
|
Aaron Piotrowski
|
d88d009359
|
Add multi-listen example
|
2017-07-29 10:28:20 -05:00 |
|
Aaron Piotrowski
|
a18d7386bf
|
Remove __destruct() from Internal\Operation
Users now define their own destruct methods invoking complete().
|
2017-07-29 10:25:06 -05:00 |
|
Aaron Piotrowski
|
f1b1f0070d
|
Remove unneeded storage of name in PqStatement
The \pq\Statement object contains a name field.
|
2017-07-28 17:34:43 -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 |
|
Pieter Hordijk
|
53559d1910
|
Store the statement name in the statement
Also reverted hashing in `Connection::execute` because that's not
actually a prepared statement
|
2017-07-26 23:38:00 -05:00 |
|
Pieter Hordijk
|
08e3432995
|
Fixes the issue where the prepared statement's plan_name is truncated
|
2017-07-26 23:38:00 -05:00 |
|
Aaron Piotrowski
|
8e37f2aaa6
|
Refactor read watcher
|
2017-06-21 19:12:45 -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
|
f9423d0d11
|
Add Makefile
|
2017-06-20 23:04:23 -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
|
268deb3754
|
Use tagged versions
|
2017-06-18 00:14:46 -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
|
a6394f67b2
|
Specify method name only
|
2017-06-04 22:15:50 -05:00 |
|
Aaron Piotrowski
|
95939ca257
|
Use CallableMaker; update docblocks
|
2017-06-04 22:15:32 -05:00 |
|
Aaron Piotrowski
|
dd9c4c649d
|
Simplify transaction commit and rollback
|
2017-05-28 08:10:57 -05:00 |
|
Aaron Piotrowski
|
6e9e32079a
|
Move extension installation to separate scripts
|
2017-05-26 16:33:11 -05:00 |
|
Aaron Piotrowski
|
85df59ff9f
|
Drop table before test
|
2017-05-26 16:26:25 -05:00 |
|
Aaron Piotrowski
|
dad285f9ef
|
Update examples
|
2017-05-26 14:41:02 -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 |
|
Aaron Piotrowski
|
4103e853b6
|
Add return types on getCurrent()
|
2017-05-25 22:47:49 -05:00 |
|
Aaron Piotrowski
|
31ea949464
|
Remove copy/paste error
|
2017-05-25 22:46:58 -05:00 |
|
Aaron Piotrowski
|
fb69e56040
|
Update readme
|
2017-05-24 09:59:16 -05:00 |
|
Aaron Piotrowski
|
c255df3477
|
Update promise resolution types in doc blocks
|
2017-05-24 09:59:06 -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
|
a8b7509668
|
Use code fixer
|
2017-05-15 23:27:47 -05:00 |
|
Aaron Piotrowski
|
e27b0dc0ca
|
example → examples
|
2017-05-15 23:18:20 -05:00 |
|
Aaron Piotrowski
|
a276d17be7
|
Update for Amp ^2
|
2017-05-15 23:14:02 -05:00 |
|
Aaron Piotrowski
|
cdd8b8004f
|
Use lib name in error message
|
2017-04-14 18:33:31 -05:00 |
|
Aaron Piotrowski
|
f42faf8f85
|
Update test suite name
|
2017-04-14 18:33:10 -05:00 |
|
Aaron Piotrowski
|
c11beb79a2
|
Update for Amp changes
Listener → StreamIterator
Promise\map() removed
|
2017-04-14 18:32:57 -05:00 |
|
Aaron Piotrowski
|
e8e3ea7f7b
|
when() → onResolve()
|
2017-03-21 19:16:25 -05:00 |
|
Aaron Piotrowski
|
04a6463888
|
Update for async-interop merge and other Amp changes
|
2017-03-17 10:17:24 -05:00 |
|