Should all interpolated method names omit Interpolated and non-interpolated methods include raw? #10
TwentyFourMinutes
started this conversation in
Ideas
Replies: 1 comment
-
Raw is quite clear about what is does indeed ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently we have the following methods:
QueryInterpolatedSingle
,QueryInterpolatedBatch
andExecuteInterpolatedAsync
, their purpose is to avoid SQL injection and to allow for easier parameterized SQL. However it is quite easy to mistakenly call their non-interpolated counter parts.Proposal
Omit
Interpolated
in all of the above mentioned method names and instead addRaw
to their counter part methods e.g.QueryRawSingle
,QueryRawBatch
andExecuteRawAsync
.Pros
Cons
I would be happy about any thoughts or suggestions as well as a vote for either 👍 or 👎!
Beta Was this translation helpful? Give feedback.
All reactions