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.

贡献者指南