aws / aws/amazon-redshift-python-driver

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

オープン
#203 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
220
フォーク
86
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, python
領域
databases
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。