Skip to content

Commit

Permalink
Fix typespecs (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
asabil authored Nov 13, 2024
1 parent 53fea8d commit 19f030d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pgo.erl
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@
column_name_as_atom | {column_name_as_atom, boolean()} |
{decode_fun, decode_fun()}.

-type pool_option() :: queue | {queue, boolean()}.
-type pool_option() :: queue | {queue, boolean()} |
{timeout, timeout()} | {deadline, integer()}.
-type options() :: #{pool => atom(),
trace => boolean(),
include_statement_span_attribute => boolean(),
queue => boolean(),
decode_opts => [decode_option()]}.
decode_opts => [decode_option()],
pool_options => [pool_option()]}.

-type pool_config() :: #{host => string(),
port => integer(),
Expand All @@ -67,7 +69,7 @@
idle_interval => integer(),

%% gen_tcp socket options
socket_options => [gen_tcp:socket_option()],
socket_options => [gen_tcp:connect_option()],

%% defaults for options used at query time
queue => boolean(),
Expand Down

0 comments on commit 19f030d

Please sign in to comment.