#sql-query #sql #formatting #white-space #string #format #logging

sqlformat

将 SQL 字符串中的空白格式化,使其更易于阅读

14 个版本

0.2.4 2024年6月12日
0.2.3 2023年12月6日
0.2.2 2023年9月4日
0.2.1 2023年1月13日
0.1.0 2020年4月18日

#38 in 开发工具

Download history 263086/week @ 2024-04-29 259937/week @ 2024-05-06 278380/week @ 2024-05-13 274062/week @ 2024-05-20 264590/week @ 2024-05-27 296405/week @ 2024-06-03 308837/week @ 2024-06-10 293881/week @ 2024-06-17 302876/week @ 2024-06-24 290581/week @ 2024-07-01 325923/week @ 2024-07-08 294858/week @ 2024-07-15 327001/week @ 2024-07-22 318549/week @ 2024-07-29 323199/week @ 2024-08-05 345237/week @ 2024-08-12

1,324,493 每月下载量
用于 1,177 个 Crates (27 直接)

MIT/Apache

105KB
2.5K SLoC

sqlformat

Build Status unsafe forbidden Version Docs

此 Crates 是用 Rust 编写的 https://github.com/kufii/sql-formatter-plus 的移植。它旨在作为格式化 SQL 查询的纯 Rust 库使用。

目前没有二进制接口。此 Crates 旨在格式化 sqlx 中的查询日志,但它可能对 Rust 生态系统中的其他 Crates 也很有用。


lib.rs:

此 Crates 是用 Rust 编写的 https://github.com/kufii/sql-formatter-plus 的移植。它旨在作为格式化 SQL 查询的纯 Rust 库使用。

依赖

~1.5MB
~23K SLoC