Skip to content

Commit 49ab6aa

Browse files
committed
remove dependency to sqlformat
1 parent b739cc1 commit 49ab6aa

File tree

3 files changed

+25
-46
lines changed

3 files changed

+25
-46
lines changed

Cargo.lock

Lines changed: 22 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sqlx-core/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ chrono = { version = "0.4.19", default-features = false, features = ["clock"], o
113113
crc = { version = "3", optional = true }
114114
crossbeam-queue = "0.3.2"
115115
digest = { version = "0.10.0", default-features = false, optional = true, features = ["std"] }
116-
dirs = { version = "5.0.1", optional = true }
116+
dirs = { version = "6.0.0", optional = true }
117117
encoding_rs = { version = "0.8.30", optional = true }
118118
either = "1.6.1"
119119
futures-channel = { version = "0.3.19", default-features = false, features = ["sink", "alloc", "std"] }
@@ -150,7 +150,6 @@ serde = { version = "1.0.132", features = ["derive", "rc"], optional = true }
150150
serde_json = { version = "1.0.73", features = ["raw_value"], optional = true }
151151
sha1 = { version = "0.10.1", default-features = false, optional = true }
152152
sha2 = { version = "0.10.0", default-features = false, optional = true }
153-
sqlformat = "0.2.0"
154153
thiserror = "2.0.3"
155154
time = { version = "0.3.2", features = ["macros", "formatting", "parsing"], optional = true }
156155
tokio-stream = { version = "0.1.8", features = ["fs"], optional = true }

sqlx-core/src/logger.rs

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,7 @@ impl<'q> QueryLogger<'q> {
5151

5252
let sql = if summary != self.sql {
5353
summary.push_str(" …");
54-
format!(
55-
"\n\n{}\n",
56-
sqlformat::format(
57-
&self.sql,
58-
&sqlformat::QueryParams::None,
59-
sqlformat::FormatOptions::default()
60-
)
61-
)
54+
format!("\n\n{}\n", &self.sql)
6255
} else {
6356
String::new()
6457
};
@@ -137,14 +130,7 @@ impl<'q, O: Debug + Hash + Eq, R: Debug, P: Debug> QueryPlanLogger<'q, O, R, P>
137130

138131
let sql = if summary != self.sql {
139132
summary.push_str(" …");
140-
format!(
141-
"\n\n{}\n",
142-
sqlformat::format(
143-
&self.sql,
144-
&sqlformat::QueryParams::None,
145-
sqlformat::FormatOptions::default()
146-
)
147-
)
133+
format!("\n\n{}\n", &self.sql)
148134
} else {
149135
String::new()
150136
};

0 commit comments

Comments
 (0)