postgis_helpers.config_helpers module

Summary of config_helpers.py

You may have lots of SQL database connections. Or maybe you just want to keep your database connection information out of your analysis code. This module provides a method for storing and retrieving connections to database clusters by named profiles inside [square_brackets].

TODO: update this with new features

postgis_helpers.config_helpers.configurations(filepath: pathlib.Path = PosixPath('/home/docs/sql_data_io/database_connections.cfg')) → dict[source]
postgis_helpers.config_helpers.make_config_file(filepath: Union[pathlib.Path, str] = PosixPath('/home/docs/sql_data_io/database_connections.cfg'), overwrite: bool = False) → bool[source]
postgis_helpers.config_helpers.read_config_file(filepath: pathlib.Path = PosixPath('/home/docs/sql_data_io/database_connections.cfg')) → dict[source]