snowflakedb / snowflakedb/snowflake-connector-python
Session/cursor specific `paramstyle`
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 730
- Forks
- 574
- Avg merge
- 5h 45m
- Merged PRs (30d)
- 16
Description
What is the current behavior?
The paramstyle must be declared before opening a connection.
What is the desired behavior?
To be able to declare the paramstyle on a finer grain level.
How would this improve snowflake-connector-python?
Provide users with more flexibility to set their paramstyle without requiring different connections.
By default, the connector uses pyformat, however, in some places we want to be able to use other paramstyles, such as qmark, however this requires creating a new connection just for a single query using a different parameter.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by tracing where paramstyle is declared before a connection opens and determine how cursor- or session-level configuration could fit; done means users can use qmark or another paramstyle without creating a separate connection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, sql
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100