cloud
dev_tool.db.postgres.cloud
log = logging.getLogger(__name__)
module-attribute
CloudPostgresDatabase
Bases: PostgresDatabaseStrategy
A class for interacting with cloud PostgreSQL databases.
This class provides methods for dumping and managing cloud PostgreSQL databases.
The constructor for the CloudPostgresDatabase class.
It initializes the database configuration from environment variables.
Source code in dev_tool/db/postgres/cloud.py
create_database
A method that creates a database in the cloud.
This method is not implemented and will raise an exception.
Source code in dev_tool/db/postgres/cloud.py
drop_database
A method that drops a database from the cloud.
This method is not implemented and will raise an exception.
Source code in dev_tool/db/postgres/cloud.py
dump_database
A method that dumps a cloud database to a local directory.
Parameters:
-
input_file(Path) –The path to the output directory.