1
0
mirror of https://github.com/danog/postgres.git synced 2024-12-02 09:27:54 +01:00
Commit Graph

211 Commits

Author SHA1 Message Date
Aaron Piotrowski
d819fd9098
Merge branch 'master' into v2 2020-10-11 19:54:30 -05:00
Aaron Piotrowski
de108b464e
Refactor for Amp v3 2020-10-11 11:49:15 -05:00
Aaron Piotrowski
dee41676fb
Update for Stream to Pipeline changes 2020-08-28 12:26:11 -05:00
Aaron Piotrowski
c092fdf183
Update for Stream changes 2020-08-01 09:29:34 -05:00
Sascha-Oliver Prolic
7cf9d37033 fix connection string in readme example 2020-08-01 08:02:20 -05:00
Aaron Piotrowski
09c2a42ff0
Consume further results after query error
Fixes #32.
2020-07-31 23:25:19 -05:00
Aaron Piotrowski
05d571c1a9
Run Psalm on Travis 2020-06-08 14:40:38 -05:00
Aaron Piotrowski
807daec712
Use Psalm
Fixed type notations found by Psalm.
2020-06-06 10:09:54 -05:00
Aaron Piotrowski
2781a20751
Use custom message with TimeoutCancellationToken 2020-06-05 09:48:15 -05:00
Aaron Piotrowski
190b98be49
yield() to emit() 2020-06-05 09:47:43 -05:00
Aaron Piotrowski
13f89b854b
Free result on disposal
Rather than on destruction.
2020-06-05 09:31:12 -05:00
Aaron Piotrowski
e742c25c3e
Update examples 2020-06-05 09:28:09 -05:00
Aaron Piotrowski
d0da29f987
Mark internal classes as internal 2020-05-22 21:54:23 -05:00
Aaron Piotrowski
ff2e0c600b
Refactor where unbuffered result is released 2020-05-22 21:54:02 -05:00
Aaron Piotrowski
47275f7cdb
Remove unused import 2020-05-22 18:39:03 -05:00
Aaron Piotrowski
43c8dab5c2
Move sql argument 2020-05-22 18:26:54 -05:00
Aaron Piotrowski
1e0355cf4c
Remove unused classes 2020-05-22 18:26:43 -05:00
Aaron Piotrowski
a1ce998070
Update for Stream interface changes 2020-05-22 17:53:14 -05:00
Aaron Piotrowski
0743e60583
WIP 2020-05-22 00:00:03 -05:00
Aaron Piotrowski
98214c247c
Initial use of Stream API 2020-05-21 15:44:56 -05:00
Aaron Piotrowski
0db6f6df53
Add sslmode to config 2020-05-11 11:33:07 -05:00
Aaron Piotrowski
13ac10a086
Provide SQL query to QueryError
This was an oversight when QueryExecutionError was added some time ago.

Closes #26.
2020-03-25 13:51:55 -05:00
Aaron Piotrowski
54186c9d26
Remove unneeded str_replace()
ConnectionConfig object made this unnecessary.
2020-02-13 17:13:28 -06:00
Aaron Piotrowski
3a651d66d8
Call close on destruct 2020-02-13 11:59:23 -06:00
Aaron Piotrowski
55eb114378
Update travis build 2020-02-13 11:59:08 -06:00
Aaron Piotrowski
3fc385ffb3
Fix simultaneous transactions
Also removed some unnecessary checks for a null handle from Connection – it can never be null.
2020-02-12 11:26:56 -06:00
Aaron Piotrowski
38ff6b207f
Ignore PHPUnit cache 2020-02-06 17:55:27 -06:00
Aaron Piotrowski
7e676aaf50
Upgrade to PHP 7.1 2020-02-06 17:51:26 -06:00
Aaron Piotrowski
d88ec8cd35
Fix empty array parsing
Closes #21.
2020-01-16 14:12:26 -06:00
Aaron Piotrowski
15f840335d
Update readme 2019-09-30 17:45:34 -05:00
Aaron Piotrowski
1e1155d73d
Remove circular reference in destructor 2019-09-30 17:38:49 -05:00
Aaron Piotrowski
d5f70b2f4f
Update tests 2019-09-26 22:41:47 -05:00
Aaron Piotrowski
170266227a
Increase ref-count before waiting 2019-09-26 17:27:22 -05:00
Aaron Piotrowski
b056da210d
Improve error message 2019-09-26 17:24:16 -05:00
Aaron Piotrowski
31b739bc77
Add result buffer toggle 2019-09-26 15:26:30 -05:00
Aaron Piotrowski
8a6767f99e
Remove circular reference 2019-04-04 15:36:25 -05:00
Aaron Piotrowski
0b530983c2
Remove statement pool caching 2019-04-03 14:02:26 -05:00
Aaron Piotrowski
0fcf265c41
Add missed reference 2019-04-03 10:22:32 -05:00
Aaron Piotrowski
a60569ad76
Reuse connection statement with dissimilar parameters 2019-04-03 09:12:04 -05:00
Aaron Piotrowski
93f5a9cf1f
Restore backpressure to unbuffered results 2019-04-01 19:15:30 -05:00
Aaron Piotrowski
cf43bc03ac
Fix resuing hashed name for similar queries 2019-03-29 10:39:32 -05:00
Aaron Piotrowski
ccce08f5f2
Move consistency check inside generator
Each sub-array should be checked as well.
2019-03-26 11:20:03 -05:00
Aaron Piotrowski
e460f50716
Fix statement storage
Seems I simplified too much and made a circular reference. However, I hope to have found what was causing the issue in #19 — the refCount was being incremented when a promise for a statement was returned, inflating the number of statement references. This takes a similar approach as in 1.0.3, but with anonymous classes instead.
2019-03-26 11:18:39 -05:00
Aaron Piotrowski
9c499e1f5e
Test on 7.3 and 7.4 2019-03-25 12:58:20 -05:00
Aaron Piotrowski
1269216bee
Simplify statement preparing and storage 2019-03-25 12:16:36 -05:00
Aaron Piotrowski
6791ece329
Release if exception is thrown 2019-03-14 16:29:58 -05:00
Aaron Piotrowski
95b3896931
Increment refCount when starting transaction query 2019-03-14 16:02:56 -05:00
Aaron Piotrowski
7159f9d1bc
Quiet style fixer 2018-11-13 14:28:39 -06:00
Aaron Piotrowski
e306c520f2
Fix using common loop identifier
See amphp/sql-common#1.
2018-11-13 14:24:26 -06:00
Aaron Piotrowski
b30d7d8fdf
Add tests for preparing same query in a pool 2018-11-13 14:23:58 -06:00