mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-17 22:14:37 +01:00
fmt
This commit is contained in:
@@ -426,13 +426,25 @@ impl Display for Operator {
|
||||
}?;
|
||||
Ok(())
|
||||
}
|
||||
Operator::Search { table_identifier, search, .. } => {
|
||||
Operator::Search {
|
||||
table_identifier,
|
||||
search,
|
||||
..
|
||||
} => {
|
||||
match search {
|
||||
Search::PrimaryKeyEq { .. } | Search::PrimaryKeySearch { .. } => {
|
||||
writeln!(f, "{}SEARCH {} USING INTEGER PRIMARY KEY (rowid=?)", indent, table_identifier)?;
|
||||
writeln!(
|
||||
f,
|
||||
"{}SEARCH {} USING INTEGER PRIMARY KEY (rowid=?)",
|
||||
indent, table_identifier
|
||||
)?;
|
||||
}
|
||||
Search::IndexSearch { index, .. } => {
|
||||
writeln!(f, "{}SEARCH {} USING INDEX {}", indent, table_identifier, index.name)?;
|
||||
writeln!(
|
||||
f,
|
||||
"{}SEARCH {} USING INDEX {}",
|
||||
indent, table_identifier, index.name
|
||||
)?;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user