Skip to content

Parameters#183

Closed
carnegiemedal wants to merge 6 commits intoMarketSquare:masterfrom
carnegiemedal:parameters
Closed

Parameters#183
carnegiemedal wants to merge 6 commits intoMarketSquare:masterfrom
carnegiemedal:parameters

Conversation

@carnegiemedal
Copy link
Copy Markdown
Contributor

#146

Add an optional argument to a number of existing keywords for passing sql parameters.

These can then be inserted by the driver, avoiding the need to use variable substitution.

See also https://peps.python.org/pep-0249/#id20.

add parameters argument
pass parameters argument to execute function
added test using parameters argument
use correct list parameter
try different syntax for postgres, oracle etc.
extra syntax alternative for postgres, pymsql
@bhirsz
Copy link
Copy Markdown
Member

bhirsz commented Nov 19, 2023

Thanks for the contribution! Parameters/args are officially supported in DBAPI2 and it makes sense to support them in DatabaseLibrary as well. We did some bigger changes recently and to make it easier to merge this PR I have reused your branch and created new PR (#198) - but all your commit history isretained.

@amochin
Copy link
Copy Markdown
Collaborator

amochin commented Nov 20, 2023

Implemented in #198

@amochin amochin closed this Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants