squirrel
squirrel copied to clipboard
How to set dynamic parameters for the `From` field
As example:
myQuery := myQuery.From(fmt.Sprintf(`myTable, to_tsquery('%s') AS q`, myVariable))
Possible SQL injection here? Besides using fmt.Sprintf is a bad idea. We use squirrel to avoid using fmt.Sprintf, don't we?