aws / aws/amazon-redshift-python-driver
Feature request: `autocommit` as connector `__init__` property
- 主要语言
- 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