Copyright © (C) 2015, David N. Welton
Authors: David N. Welton (davidw@dedasys.com).
| connect/1 | |
| connect/2 | |
| equery/2 | |
| equery/3 | |
| equery/4 | |
| squery/1 | |
| squery/2 | |
| squery/3 | |
| with_transaction/1 | |
| with_transaction/2 | |
| with_transaction/3 |
connect(Settings) -> any()
connect(PoolName, Settings) -> any()
equery(Sql::epgsql:sql_query(), Params::[epgsql:bind_param()]) -> epgsql:reply(epgsql:equery_row()) | {error, Reason::any()}
equery(Sql::epgsql:sql_query(), Params::[epgsql:bind_param()], Timeout::atom() | integer()) -> epgsql:reply(epgsql:equery_row())
equery(PoolName::atom(), Sql::epgsql:sql_query(), Params::[epgsql:bind_param()]) -> epgsql:reply(epgsql:equery_row()) | {error, Reason::any()}
equery(PoolName::atom(), Sql::epgsql:sql_query(), Params::[epgsql:bind_param()], Timeout::atom() | integer()) -> epgsql:reply(epgsql:equery_row()) | {error, Reason::any()}
squery(Sql::epgsql:sql_query()) -> epgsql:reply(epgsql:squery_row()) | [epgsql:reply(epgsql:squery_row())] | {error, Reason::any()}
squery(Sql::epgsql:sql_query(), Timeout::atom() | integer()) -> epgsql:reply(epgsql:squery_row()) | [epgsql:reply(epgsql:squery_row())] | {error, Reason::any()}
squery(PoolName::atom(), Sql::epgsql:sql_query()) -> epgsql:reply(epgsql:squery_row()) | [epgsql:reply(epgsql:squery_row())] | {error, Reason::any()}
squery(PoolName::atom(), Sql::epgsql:sql_query(), Timeout::atom() | integer()) -> epgsql:reply(epgsql:squery_row()) | [epgsql:reply(epgsql:squery_row())] | {error, Reason::any()}
with_transaction(Function::fun(() -> Reply)) -> Reply | {rollback | error, any()}
Reply = any()
with_transaction(PoolName::atom(), Function::fun(() -> Reply)) -> Reply | {rollback | error, any()}
Reply = any()with_transaction(Function::fun(() -> Reply), Timeout::timeout()) -> Reply | {rollback | error, any()}
Reply = any()
with_transaction(PoolName::atom(), Function::fun(() -> Reply), Timeout::atom() | non_neg_integer()) -> Reply | {rollback | error, any()}
Reply = any()
Generated by EDoc