Skip to content

Python - Autocommit two ways of setting it #3853

@idosilverwater-vast

Description

@idosilverwater-vast

What would you like help with?

In python's adbc-driver-manager there are two ways of setting autocommit in the connect method one is through the conn_kwargs the other is through autocommit.
the first uses setOption pre-init and the second uses a post-init setOption.

in general, i think a pre-init is preferable and the connect is able to use it. My question is why not?

context: it doesn't hurt functionality but because autocommit can be set in two ways at the same time can sometimes cause unexpected behavior / be confusing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions