lance-format/lance

Parametrize SQL strings

Open

#2,160 建立於 2024年4月6日

在 GitHub 查看
 (2 留言) (0 反應) (1 負責人)Rust (695 fork)github user discovery
enhancementgood first issuerust

倉庫指標

Star
 (6,582 star)
PR 合併指標
 (平均合併 6天 1小時) (30 天內合併 219 個 PR)

描述

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.

貢獻者指南