Module pgsql_pool

Function Index

code_change/3
get_connection/1Get a db connection, wait at most ?PGSQL_CALL_TIMEOUT seconds before giving up.
get_connection/2Get a db connection, wait at most Timeout seconds before giving up.
get_database/1Return the name of the database used for the pool.
get_database_opt/2
handle_call/3
handle_cast/2
handle_info/2
init/1
return_connection/2Return a db connection back to the connection pool.
start_link/2
start_link/3
status/1Return the current status of the connection pool.
stop/1Stop the pool, close all db connections.
terminate/2

Function Details

code_change/3

code_change(OldVsn, State, Extra) -> any()

get_connection/1

get_connection(P) -> any()

Get a db connection, wait at most ?PGSQL_CALL_TIMEOUT seconds before giving up.

get_connection/2

get_connection(P, Timeout) -> any()

Get a db connection, wait at most Timeout seconds before giving up.

get_database/1

get_database(P) -> any()

Return the name of the database used for the pool.

get_database_opt/2

get_database_opt(Opt, P) -> any()

handle_call/3

handle_call(Request, From, State) -> any()

handle_cast/2

handle_cast(Request, State) -> any()

handle_info/2

handle_info(Info, State) -> any()

init/1

init(X1) -> any()

return_connection/2

return_connection(P, C) -> any()

Return a db connection back to the connection pool.

start_link/2

start_link(Size, Opts) -> any()

start_link/3

start_link(Name, Size, Opts) -> any()

status/1

status(P) -> any()

Return the current status of the connection pool.

stop/1

stop(P) -> any()

Stop the pool, close all db connections

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc, Dec 21 2014, 17:07:37.