Part of stoqlib.database.settings View In Hierarchy
It also provides helpers on top of ORMObject to return a database connection using the settings inside the object.
Method | __init__ | Undocumented |
Method | _build_uri | Undocumented |
Method | _get_connection_internal | Undocumented |
Method | get_connection_uri | Returns a uri representing the current database settings. |
Method | get_connection | Returns a connection to the configured database |
Method | get_default_connection | Returns a connection to the default database, note that this |
Method | check_database_address | Undocumented |
Method | has_database | Checks if the database specified in the settings exists |
Returns | a string like postgresql://username@localhost/dbname |
Returns | a database connection |