ads.database package¶
Submodules¶
ads.database.connection module¶
- class ads.database.connection.Connector(secret_id: str | None = None, key: str | None = None, repository_path: str | None = None, **kwargs)[source]¶
Bases:
object
Validate that a connection could be made for the given set of connection parameters, and contruct a Connector object provided that the validation is successful.
- Parameters:
secret_id (str, optional) – The ocid of the secret to retrieve from Oracle Cloud Infrastructure Vault.
key (str, optional) – The key to find the database directory.
repository_path (str, optional) – The local database information store, default to ~/.database unless specified otherwise.
kwargs (dict, optional) – Name-value pairs that are to be added to the list of connection parameters. For example, database_name=”mydb”, database_type=”oracle”, username = “root”, password = “example-password”.
- Return type:
A Connector object.
- ads.database.connection.get_repository(key: str, repository_path: str | None = None) dict [source]¶
Get all values from local database store.
- ads.database.connection.import_wallet(wallet_path: str, key: str, repository_path: str | None = None) None [source]¶
Saves wallet to local database store. Unzip the wallet zip file, update sqlnet.ora and store wallet files.