Closed aoisensi closed 1 year ago
You can pass variables like this to prevent sql injection. Would that solve your issue?
result, err := db.Query("SELECT * FROM user WHERE name = $user;", map[string]any{
"user": username.
})
Wow thank you LGTM Maybe I am blind... Sorry!
Is your feature request related to a problem?
Please add formatting query function. Like this one.
You need to add like this function because SQL injection vulnerabilities occur frequently.
Describe the solution
-
Alternative methods
-
SurrealDB version
-
Contact Details
No response
Is there an existing issue for this?
Code of Conduct