Skip to content

Provide option to skip commit in postgresql.to_sql to allow usage of transactions #2790

@Salatich

Description

@Salatich

Is your idea related to a problem? Please describe.
Currently, if there are no exceptions when calling awswrangler.postgresql.to_sql then commit is automatically done:

It makes it impossible to use awswrangler.postgresql.to_sql as a part of a transaction which e.g. writes multiple tables, because if one of the transaction steps fails, you cannot rollback all the changes, just the last one.

Describe the solution you'd like
To add extra parameter for awswrangler.postgresql.to_sql as it was done here, but for redshift:
#705

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions