-
Hello, as I used only ORMs until now i wasnt afraid of SQL Injections but now i found this perfect library and want to build stack around it. My question is, when i receive parameter userID for example in body of request (let's say echo), do i need somehow sanitize it before i put it here instead of number 12? or i can just put there variable and it will be safe? |
Beta Was this translation helpful? Give feedback.
Answered by
houten11
Dec 4, 2023
Replies: 1 comment 1 reply
-
Yeah, it is safe to just put a variable. Jet will create a parametrized query for you. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
draew6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, it is safe to just put a variable. Jet will create a parametrized query for you.
You can see a query and parameters with
stmt.Sql()
.