-
Notifications
You must be signed in to change notification settings - Fork 46
Support params dict #20
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestpr-size: mediumModerate update sizeModerate update sizetriage doneIssues that are triaged by dev team and are in investigation.Issues that are triaged by dev team and are in investigation.under development
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpr-size: mediumModerate update sizeModerate update sizetriage doneIssues that are triaged by dev team and are in investigation.Issues that are triaged by dev team and are in investigation.under development
Instead of forcing ordered params, can you also allow a dict? This is a fairly common convention in Python DB libraries (see psycopg and pymssql for example) and is much nicer than passing a tuple.
Example:
Note on this example: Many libraries (psycopg in particular) instead use a format like the following. I think that format would be useful too, but as SQL Server's variables are much more flexible it would be great to support them natively as in the above.
Thank you!