Skip to content

Add backend inference for the Path-API #245

@tkilias

Description

@tkilias

In the python-extension-common, we implement a backend inference for the Path-Like API. We need to move the code to this repo, such that all python projects can use it.

Start: https://github.com/exasol/python-extension-common/blob/177d18fb2a860c4c697282a802fe99604b486186/exasol/python_extension_common/deployment/language_container_deployer.py#L411

End: https://github.com/exasol/python-extension-common/blob/177d18fb2a860c4c697282a802fe99604b486186/exasol/python_extension_common/deployment/language_container_deployer.py#L478

Tasks:

  • Add function infer_backend in _path.py using the bucketfs_* parameters or saas parameters
  • Add to _path.py a function get_database_id to retrieve saas_database_id, if only the saas_database_name is given
  • Add to _path.py a function infer_path that uses infer_backend and get_database_id to create a path via build_path
    • The function infer_path should get the following input paramters
        bucketfs_host: Optional[str] = None,
        bucketfs_port: Optional[int] = None,
        bucketfs_name: Optional[str] = None,
        bucket: Optional[str] = None,
        bucketfs_user: Optional[str] = None,
        bucketfs_password: Optional[str] = None,
        bucketfs_use_https: bool = True,
        saas_url: Optional[str] = None,
        saas_account_id: Optional[str] = None,
        saas_database_id: Optional[str] = None,
        saas_database_name: Optional[str] = None,
        saas_token: Optional[str] = None,
        path_in_bucket: str = "",
        use_ssl_cert_validation: bool = True,
        ssl_trusted_ca: Optional[str] = None,

Metadata

Metadata

Assignees

Labels

refactoringCode improvement without behavior change

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions