Aaron Piotrowski
237fbf413c
Add guard in pgsql tests if ev is being used
2018-10-13 09:56:46 -05:00
Aaron Piotrowski
dcc8435d84
Update for split of amphp/sql
2018-10-13 09:55:31 -05:00
prolic
90fae70303
further changes
2018-09-26 09:57:10 -05:00
prolic
0cc05aeeea
Need fix after amphp/sql update #2
...
resolves https://github.com/amphp/postgres/issues/15
2018-09-26 09:57:10 -05:00
Aaron Piotrowski
19d8e4b9ff
Update for amphp/sql changes
2018-09-26 09:26:49 -05:00
Aaron Piotrowski
16e2b56f20
Fix copy/paste oversight
...
Updated test to catch error.
2018-08-09 12:31:51 -05:00
Aaron Piotrowski
8441446563
Extend Pooled* classes in amphp/sql; update tests
2018-07-17 11:20:07 -05:00
Aaron Piotrowski
53d3f8b074
Remove resetConnections
...
Moved to constructor argument.
2018-07-10 18:50:11 -05:00
Aaron Piotrowski
667a94531c
Use decorators instead of Operation
2018-07-09 00:10:07 -05:00
Aaron Piotrowski
deaab66cbb
Remove unused exception classes
2018-07-02 18:45:09 -05:00
Chris Wright
660209270d
Fix Transaction; Fix tests; Remove extension repo directories after install on travis
2018-07-01 12:40:23 -05:00
prolic
0472d5d560
Use common SQL interface library
2018-07-01 12:33:12 -05:00
Aaron Piotrowski
996b55fd93
Reintroduce Pool interface
2018-06-27 23:48:16 -05:00
Aaron Piotrowski
8a6c2ec1e4
Define scripts in composer.json; remove Makefile; fix styles
2018-04-08 21:53:10 -05:00
Aaron Piotrowski
9269fe5a96
Move PooledStatement to Internal namespace
2018-04-08 21:40:39 -05:00
Aaron Piotrowski
a2318e52b9
Avoid stacked PooledStatements
2018-03-30 13:33:51 -05:00
Aaron Piotrowski
97022a4889
Refactor PooledStatement
...
PooledStatement now holds a collection of statements created from the pool, releasing them at the same frequency as connections are released from the pool.
Added a lastUsedAt() method to Statement.
2018-03-30 11:55:23 -05:00
Aaron Piotrowski
d91f8054ba
Enabled unbuffered queries, but remove backpressure
2018-03-29 23:11:28 -05:00
Aaron Piotrowski
dbca58507e
Add Connector interface; make most classes final
...
Connector added so Pool could be final while adding a way to alter how connections are established. connect() and pool() functions now use the global connector defined by a new function connector().
Some tests were refactored to account for final classes. AbstractPoolTest was removed as the other pool tests covered the same code with similar tests.
2018-03-26 22:08:46 -05:00
Aaron Piotrowski
33c056b635
Add PooledStatement
...
Removed Operation from Statement.
2018-01-25 21:49:24 -06:00
Aaron Piotrowski
225776c542
Automatically cast/encode statement parameters
...
Statement parameters are automatically cast to values expected by postgres, including encoding arrays.
2018-01-24 23:45:44 -06:00
Aaron Piotrowski
cbbe6ff815
Add support for named and ? placeholders
2018-01-23 23:00:22 -06:00
Aaron Piotrowski
0ffc33a932
Handle escaped quotes within quoted array values
2018-01-23 20:01:23 -06:00
Aaron Piotrowski
e3c295b8e5
Ensure connections closed by the server are not used
2018-01-23 19:44:24 -06:00
Aaron Piotrowski
a77e0ec22c
Drop Connection and Pool interfaces
...
Connection is now an abstract class and Pool is a concrete class. Removed AggregatePool as well.
2018-01-02 21:55:59 -06:00
Aaron Piotrowski
4b1c56a2b1
Automatically remove idle connections from pool
2018-01-02 16:26:28 -06:00
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