Module z_db_pool

Database pool wrapper.

Copyright 2014 Arjan Scherpenisse Date: 2014-04-29

Authors: Arjan Scherpenisse (arjan@scherpenisse.net).

Description

Database pool wrapper

Function Index

child_spec/2Optionally add the db pool connection.
db_driver/1
db_pool_name/1
get_connection/1
get_database_options/1Get all configuration options for this site which are related to the database configuration.
return_connection/2
test_connection/1Perform a connect to test whether the database is working.

Function Details

child_spec/2

child_spec(Host, SiteProps) -> any()

Optionally add the db pool connection

db_driver/1

db_driver(SiteProps) -> any()

db_pool_name/1

db_pool_name(Host) -> any()

get_connection/1

get_connection(Context) -> any()

get_database_options/1

get_database_options(Context) -> any()

Get all configuration options for this site which are related to the database configuration.

return_connection/2

return_connection(Worker, Context) -> any()

test_connection/1

test_connection(Context) -> any()

Perform a connect to test whether the database is working.


Generated by EDoc, Oct 26 2014, 02:54:05.