We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f39da0 commit 9a751cfCopy full SHA for 9a751cf
CHANGELOG.md
@@ -6,6 +6,8 @@
6
7
- Support unix domain socket host names
8
[#90](https://github.com/erleans/pgo/pull/90)
9
+- Export `pgo:query/4` to support passing a connection directly to `query`
10
+ [#95](https://github.com/erleans/pgo/pull/95)
11
12
### Fixed
13
src/pgo.erl
@@ -13,6 +13,7 @@
query/1,
14
query/2,
15
query/3,
16
+ query/4,
17
transaction/1,
18
transaction/2,
19
transaction/3,
test/pgo_basic_SUITE.erl
@@ -22,7 +22,8 @@ cases() ->
22
rows_as_maps, json_jsonb, types,
23
int4_range, ts_range, tstz_range, numerics,
24
hstore, records, circle, path, polygon, line,
25
- line_segment, tid, bit_string, arrays, tsvector].
+ line_segment, tid, bit_string, arrays, tsvector,
26
+ query_arity_4].
27
28
init_per_suite(Config) ->
29
application:load(pg_types),
@@ -437,3 +438,12 @@ tsvector(_Config) ->
437
438
pgo:query("SELECT $1::tsvector", [[{<<"a">>,[{1,'A'}]},
439
{<<"cat">>,[{5,null}]},
440
{<<"fat">>,[{2,'B'},{4,'C'}]}]])).
441
+
442
+query_arity_4(_Config) ->
443
+ {ok, Ref, Conn} = pgo:checkout(default),
444
445
+ ?assertMatch(#{rows := [{1}]}, pgo:query("select 1", [], #{}, Conn)),
446
447
+ pgo:checkin(Ref, Conn),
448
449
+ ok.
0 commit comments