aws / aws/amazon-redshift-python-driver
Feature request: `autocommit` as connector `__init__` property
Open
enhancement
- Dominant language
- Python
- Stars
- 220
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.