lance-format/lance

Parametrize SQL strings

Open

#2 160 ouverte le 6 avr. 2024

Voir sur GitHub
 (2 commentaires) (0 réactions) (1 assigné)Rust (695 forks)github user discovery
enhancementgood first issuerust

Métriques du dépôt

Stars
 (6 582 stars)
Métriques de merge PR
 (Merge moyen 6j 1h) (219 PRs mergées en 30 j)

Description

So users can support potentially untrustworthy inputs, support something like:

.where("id = :id", id = potentially_untrustworthy_string)

Can use placeholders: https://docs.rs/sqlparser/latest/sqlparser/ast/enum.Value.html#variant.Placeholder

And then fill in from there.

Guide contributeur