aws / aws/amazon-redshift-python-driver

Feature request: `autocommit` as connector `__init__` property

Offen
#203 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Python
Sterne
220
Forks
86
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Currently, to set `autocommit` to `True`, we have to explicitly run:

```
connection.autocommit = True
```

Is there a way to pass `autocommit` as a property to the connector constructor? Something like:

```
redshift_connector.connect({
autocommit=True,
**connection_params
})
```

We are trying to build an SQL client for our customers with Redshift as one of the underlying data-sources. It would be much cleaner this way avoiding unnecessary if-else conditioning.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start at the redshift_connector.connect entry point and trace how connection parameters reach the connection object, then inspect the existing connection.autocommit behavior. Done means the connector accepts autocommit during construction and preserves the current explicit assignment behavior; add or update the relevant connector tests to cover the constructor option.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws, python
Bereich
databases
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.