aws / aws/amazon-redshift-python-driver
Feature request: `autocommit` as connector `__init__` property
- Linguagem predominante
- Python
- Estrelas
- 220
- Forks
- 86
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.
Guia de contribuição
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- aws, python
- Domínio
- databases
- Tipo de issue
- Funcionalidade
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100