lance-format/lance

Parametrize SQL strings

Open

#2.160 aberto em 6 de abr. de 2024

Ver no GitHub
 (2 comments) (0 reactions) (1 assignee)Rust (695 forks)github user discovery
enhancementgood first issuerust

Métricas do repositório

Stars
 (6.582 stars)
Métricas de merge de PR
 (Mesclagem média 6d 1h) (219 fundiu PRs em 30d)

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.

Guia do colaborador