Module pgpool_worker

Behaviours: gen_server, poolboy_worker.

Function Index

batch/2
code_change/3
equery/3
handle_call/3
handle_cast/2
handle_info/2
init/1
squery/2
start_link/1
terminate/2

Function Details

batch/2

batch(DatabaseName::atom(), StatementsWithParams::[{Statement::string(), Params::list()}]) -> [{ok, Count::non_neg_integer()} | {ok, Count::non_neg_integer(), Rows::any()}]

code_change/3

code_change(OldVsn::any(), State::#state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}, Extra::any()) -> {ok, #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}}

equery/3

equery(DatabaseName::atom(), Statement::string(), Params::list()) -> any()

handle_call/3

handle_call(Request::any(), From::any(), State::#state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}) -> {reply, Reply::any(), #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}} | {reply, Reply::any(), #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}, Timeout::non_neg_integer()} | {noreply, #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}} | {noreply, #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}, Timeout::non_neg_integer()} | {stop, Reason::any(), Reply::any(), #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}} | {stop, Reason::any(), #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}}

handle_cast/2

handle_cast(Msg::any(), State::#state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}) -> {noreply, #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}} | {noreply, #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}, Timeout::non_neg_integer()} | {stop, Reason::any(), #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}}

handle_info/2

handle_info(Info::any(), State::#state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}) -> {noreply, #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}} | {noreply, #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}, Timeout::non_neg_integer()} | {stop, Reason::any(), #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}}

init/1

init(Args::list()) -> {ok, #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}} | {ok, #state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}, Timeout::non_neg_integer()} | ignore | {stop, Reason::any()}

squery/2

squery(DatabaseName::atom(), Sql::string() | iodata()) -> any() | {error, no_connection}

start_link/1

start_link(Args::list()) -> {ok, pid()} | {error, any()}

terminate/2

terminate(Reason::any(), State::#state{database_name = undefined | atom(), host = undefined | string(), user = undefined | string(), pass = undefined | string(), connect_options = undefined | list(), conn = undefined | any(), timer_ref = undefined | reference(), prepared_statements = any()}) -> terminated


Generated by EDoc