Skip to content

Commit de2847f

Browse files
Update Rust crate sqlformat to 0.3.5 (#7702)
1 parent 8bff6f1 commit de2847f

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

Cargo.lock

+7-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ smf = "0.2"
686686
socket2 = { version = "0.5", features = ["all"] }
687687
sp-sim = { path = "sp-sim" }
688688
sprockets-tls = { git = "https://github.com/oxidecomputer/sprockets.git", rev = "6d31fa63217c6a51061dc4afa1ebe175a0021981" }
689-
sqlformat = "0.2.6"
689+
sqlformat = "0.3.5"
690690
sqlparser = { version = "0.45.0", features = [ "visitor" ] }
691691
static_assertions = "1.1.0"
692692
# Please do not change the Steno version to a Git dependency. It makes it

oximeter/db/src/shells/sql.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ pub async fn shell(
6969
sqlformat::format(
7070
&transformed,
7171
&sqlformat::QueryParams::None,
72-
sqlformat::FormatOptions {
73-
uppercase: true,
72+
&sqlformat::FormatOptions {
73+
uppercase: Some(true),
7474
..Default::default()
7575
}
7676
)
@@ -246,7 +246,10 @@ fn print_sql_query(query: &str) {
246246
sqlformat::format(
247247
&query,
248248
&sqlformat::QueryParams::None,
249-
sqlformat::FormatOptions { uppercase: true, ..Default::default() }
249+
&sqlformat::FormatOptions {
250+
uppercase: Some(true),
251+
..Default::default()
252+
}
250253
)
251254
);
252255
println!();

workspace-hack/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ mio = { version = "1.0.2", features = ["net", "os-ext"] }
342342
rustix = { version = "0.38.37", features = ["event", "fs", "net", "pipe", "process", "stdio", "system", "termios", "time"] }
343343
tokio-rustls = { version = "0.26.0", default-features = false, features = ["logging", "ring", "tls12"] }
344344
toml_edit-cdcf2f9584511fe6 = { package = "toml_edit", version = "0.19.15", features = ["serde"] }
345+
winnow = { version = "0.6.26", features = ["simd"] }
345346

346347
[target.x86_64-unknown-illumos.build-dependencies]
347348
bitflags-f595c2ba2a3f28df = { package = "bitflags", version = "2.9.0", default-features = false, features = ["std"] }
@@ -357,5 +358,6 @@ mio = { version = "1.0.2", features = ["net", "os-ext"] }
357358
rustix = { version = "0.38.37", features = ["event", "fs", "net", "pipe", "process", "stdio", "system", "termios", "time"] }
358359
tokio-rustls = { version = "0.26.0", default-features = false, features = ["logging", "ring", "tls12"] }
359360
toml_edit-cdcf2f9584511fe6 = { package = "toml_edit", version = "0.19.15", features = ["serde"] }
361+
winnow = { version = "0.6.26", features = ["simd"] }
360362

361363
### END HAKARI SECTION

0 commit comments

Comments
 (0)