lance-format/lance

Parametrize SQL strings

Open

#2,160 opened on 2024年4月6日

GitHub で見る
 (2 comments) (0 reactions) (1 assignee)Rust (695 forks)github user discovery
enhancementgood first issuerust

Repository metrics

Stars
 (6,582 stars)
PR merge metrics
 (平均マージ 6d 1h) (30d で 219 merged PRs)

説明

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.

コントリビューターガイド