Module epgsqli

Incremental interface.

Description

Incremental interface

All the functions return reference() immediately. Each data row as well as metadata are delivered as separate messages in a form of {connection(), reference(), Payload} where Payload depends on command being executed.

Function Index

bind/3
bind/4
cancel/1
close/1
close/2
close/3
connect/1
connect/2
connect/3
connect/4
connect/5
describe/2
describe/3
equery/2
equery/3
execute/2
execute/3
execute/4
execute_batch/2
execute_batch/3
get_backend_pid/1
get_cmd_status/1
get_parameter/2
parse/2
parse/3
parse/4
prepared_query/3
set_notice_receiver/2
squery/2
start_link/0
sync/1

Function Details

bind/3

bind(C, Statement, Parameters) -> any()

bind/4

bind(C::epgsql:connection(), Statement::epgsql:statement(), PortalName::string(), Parameters::[epgsql:bind_param()]) -> reference()

cancel/1

cancel(C::epgsql:connection()) -> ok

close/1

close(C::epgsql:connection()) -> ok

close/2

close(C, Statement) -> any()

close/3

close(C, Type, Name) -> any()

connect/1

connect(Opts) -> any()

connect/2

connect(Host, Opts) -> any()

connect/3

connect(Host, Username, Opts) -> any()

connect/4

connect(Host, Username, Password, Opts) -> any()

connect/5

connect(C::epgsql:connection(), Host::inet:ip_address() | inet:hostname(), Username::string(), Password::string(), Opts::epgsql:connect_opts()) -> reference()

describe/2

describe(C, Statement) -> any()

describe/3

describe(C, X2, Name) -> any()

equery/2

equery(C::epgsql:connection(), Statement::epgsql:statement()) -> reference()

equery/3

equery(C::epgsql:connection(), Statement::epgsql:statement(), TypedParameters::[epgsql:typed_param()]) -> reference()

execute/2

execute(C, S) -> any()

execute/3

execute(C, S, N) -> any()

execute/4

execute(C::epgsql:connection(), Statement::epgsql:statement(), PortalName::string(), MaxRows::non_neg_integer()) -> reference()

execute_batch/2

execute_batch(C::epgsql:connection(), Batch::[{epgsql:statement(), [epgsql:bind_param()]}]) -> reference()

execute_batch/3

execute_batch(C::epgsql:connection(), Statement::epgsql:statement(), Batch::[[epgsql:bind_param()]]) -> reference()

get_backend_pid/1

get_backend_pid(C::epgsql:connection()) -> integer()

get_cmd_status/1

get_cmd_status(C::epgsql:connection()) -> {ok, Status}

get_parameter/2

get_parameter(C::epgsql:connection(), Name::binary()) -> binary() | undefined

parse/2

parse(C::epgsql:connection(), Sql::epgsql:sql_query()) -> reference()

parse/3

parse(C::epgsql:connection(), Sql::epgsql:sql_query(), Types::[epgsql:epgsql_type()]) -> reference()

parse/4

parse(C::epgsql:connection(), Name::iolist(), Sql::epgsql:sql_query(), Types::[epgsql:epgsql_type()]) -> reference()

prepared_query/3

prepared_query(C::epgsql:connection(), Statement::epgsql:statement(), TypedParameters::[epgsql:typed_param()]) -> reference()

set_notice_receiver/2

set_notice_receiver(C::epgsql:connection(), PidOrName::undefined | pid() | atom()) -> {ok, Previous::pid() | atom()}

squery/2

squery(C::epgsql:connection(), Sql::epgsql:sql_query()) -> reference()

start_link/0

start_link() -> any()

sync/1

sync(C) -> any()


Generated by EDoc