Skip to content

Support new connectorx 0.4.2 parameter pre_execution_query #21287

@jsjasonseba

Description

@jsjasonseba

Description

connectorx 0.4.2 introduces a new parameter called pre_execution_query in read_sql function. This feature should be added to pl.read_database_uri.

pre_execution_query: Optional[Union[str, List[str]]]: SQL query or list of SQL queries executed before main query. Can be used to set runtime configurations using SET statements. Only applicable for source “Postgres” and “MySQL”

The pre_execution_query serves use cases where user needs to issue SET statements to setup session configurations such as timeouts and transaction level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-io-databaseArea: reading/writing to databasesenhancementNew feature or an improvement of an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions