read_cached_configs
Read the connection parameters from the 'tests-setup.conf' file.
connect_to_database
Initialize setting for the connection.
Connect to database and return handler.
Takes optional parameter for connection attributes.
tests_init
Read the configurations from the tests-setup.conf file, and checks if they are valid.
check_cached_configs
Simply (double)check every value and return what's missing.
check_dsn
Parse and check the DSN.
get_dsn
Make a DSN, using a temporary database in the "tmp" dir for tests as default.
get_path
Extract the database path from the dsn.
setup_test_database
Create the test database if doesn't exists.
Check if we can connect, get the dialect as test.
find_new_table
Find and return a non existent table name between TESTAA and TESTZZ.
save_configs
Append the connection parameters to the 'tests-setup.conf' file.
create_test_database
Create the test database.
check_database
Try to connect and conclude that the database doesn't exist on error.
create_mark
Create empty file used as mark, used to run setup_test_database only the first time test_init is called.
check_mark
Check is mark file exists.
drop_test_database
Cleanup time, drop the test database, warn on failure or sql errors.
cleanup
Cleanup temporary files, warn on failure.