Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Nov 21, 2024
1 parent f4727ad commit f109bbf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/torii/server/src/handlers/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,14 @@ impl SqlHandler {
.map(|row| {
let mut obj = serde_json::Map::new();
for (i, column) in row.columns().iter().enumerate() {
let column_name = if let Some(stripped) = column.name().strip_prefix("external_") {
let column_name = if let Some(stripped) =
column.name().strip_prefix("external_")

Check warning on line 183 in crates/torii/server/src/handlers/sql.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/server/src/handlers/sql.rs#L174-L183

Added lines #L174 - L183 were not covered by tests
{
stripped.to_string()

Check warning on line 185 in crates/torii/server/src/handlers/sql.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/server/src/handlers/sql.rs#L185

Added line #L185 was not covered by tests
} else {
column.name().to_string()

Check warning on line 187 in crates/torii/server/src/handlers/sql.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/server/src/handlers/sql.rs#L187

Added line #L187 was not covered by tests
};

let value: serde_json::Value = match column.type_info().name() {
"TEXT" => row
.get::<Option<String>, _>(i)
Expand Down

0 comments on commit f109bbf

Please sign in to comment.