|
@@ -62,7 +62,8 @@
|
|
{async, Receiver :: pid() | atom()} | % process to receive LISTEN/NOTIFY msgs
|
|
{async, Receiver :: pid() | atom()} | % process to receive LISTEN/NOTIFY msgs
|
|
{codecs, Codecs :: [{epgsql_codec:codec_mod(), any()}]} |
|
|
{codecs, Codecs :: [{epgsql_codec:codec_mod(), any()}]} |
|
|
{nulls, Nulls :: [any(), ...]} | % terms to be used as NULL
|
|
{nulls, Nulls :: [any(), ...]} | % terms to be used as NULL
|
|
- {replication, Replication :: string()}. % Pass "database" to connect in replication mode
|
|
|
|
|
|
+ {replication, Replication :: string()} | % Pass "database" to connect in replication mode
|
|
|
|
+ {application_name, ApplicationName :: string()}.
|
|
|
|
|
|
-type connect_opts() ::
|
|
-type connect_opts() ::
|
|
[connect_option()]
|
|
[connect_option()]
|
|
@@ -77,7 +78,9 @@
|
|
async => pid() | atom(),
|
|
async => pid() | atom(),
|
|
codecs => [{epgsql_codec:codec_mod(), any()}],
|
|
codecs => [{epgsql_codec:codec_mod(), any()}],
|
|
nulls => [any(), ...],
|
|
nulls => [any(), ...],
|
|
- replication => string()}.
|
|
|
|
|
|
+ replication => string(),
|
|
|
|
+ application_name => string()
|
|
|
|
+ }.
|
|
|
|
|
|
-type connect_error() :: epgsql_cmd_connect:connect_error().
|
|
-type connect_error() :: epgsql_cmd_connect:connect_error().
|
|
-type query_error() :: #error{}. % Error report generated by server
|
|
-type query_error() :: #error{}. % Error report generated by server
|