You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You'd have to use string interpolation now, like you suggested.
❯letvar=75❯open$nu.history-path|query db$"select * from history where id = ($var)"
I'm not even sure if you can have multiple of the same parameter like that in nushell. If someone wanted to submit a PR with something like this, we'll look at it.
Interpolation is subject to sql injection and other problems (like escaping).
I'll update the description to one that fits the current language. But the idea to repeated params is something other shells use.
Activity
fdncred commentedon Jan 26, 2024
You'd have to use string interpolation now, like you suggested.
I'm not even sure if you can have multiple of the same parameter like that in nushell. If someone wanted to submit a PR with something like this, we'll look at it.
giggio commentedon Jan 26, 2024
Interpolation is subject to sql injection and other problems (like escaping).
I'll update the description to one that fits the current language. But the idea to repeated params is something other shells use.
fdncred commentedon Jan 26, 2024
If it were to take a list, that would work too like
d4h0 commentedon Mar 18, 2024
For reference: https://owasp.org/www-community/attacks/SQL_Injection
Basically,
query dbcurrently shouldn't be used with any data that comes from an untrustworthy source, like the internet.Initial --params implementation (#12249)