Asynchronous interface.
All the functions returnreference()
immediately. Results are delivered
asynchronously in a form of {connection(), reference(), Result}
, where
Result
is what synchronous version of this function normally returns.
bind(C, Statement, Parameters) -> any()
bind(C::epgsql:connection(), Statement::epgsql:statement(), PortalName::string(), Parameters::[epgsql:bind_param()]) -> reference()
cancel(C::epgsql:connection()) -> ok
close(C::epgsql:connection()) -> ok
close(C, Statement) -> any()
close(C, Type, Name) -> any()
complete_connect(C, Ref, Opts) -> any()
connect(Opts) -> any()
connect(Host, Opts) -> any()
connect(Host, Username, Opts) -> any()
connect(Host, Username, Password, Opts) -> any()
connect(C::epgsql:connection(), Host::inet:ip_address() | inet:hostname(), Username::string(), Password::string(), Opts::epgsql:connect_opts()) -> reference()
describe(C, Statement) -> any()
describe(C, X2, Name) -> any()
equery(C, Sql) -> any()
equery(C::epgsql:connection(), Statement::epgsql:statement(), TypedParameters::[epgsql:typed_param()]) -> reference()
execute(C, S) -> any()
execute(C, S, N) -> any()
execute(C::epgsql:connection(), Statement::epgsql:statement(), PortalName::string(), MaxRows::non_neg_integer()) -> reference()
execute_batch(C::epgsql:connection(), Batch::[{epgsql:statement(), [epgsql:bind_param()]}]) -> reference()
execute_batch(C::epgsql:connection(), Statement::epgsql:statement(), Batch::[[epgsql:bind_param()]]) -> reference()
get_backend_pid(C::epgsql:connection()) -> integer()
get_cmd_status(C::epgsql:connection()) -> {ok, Status}
get_parameter(C::epgsql:connection(), Name::binary()) -> binary() | undefined
parse(C, Sql) -> any()
parse(C, Sql, Types) -> any()
parse(C::epgsql:connection(), Name::iolist(), Sql::epgsql:sql_query(), Types::[epgsql:epgsql_type()]) -> reference()
prepared_query(C::epgsql:connection(), Statement::epgsql:statement(), TypedParameters::[epgsql:typed_param()]) -> reference()
set_notice_receiver(C::epgsql:connection(), PidOrName::undefined | pid() | atom()) -> {ok, Previous::pid() | atom()}
squery(C::epgsql:connection(), Sql::epgsql:sql_query()) -> reference()
start_link() -> {ok, pid()}
sync(C) -> any()
Generated by EDoc