Remove unnecessary backticks from INFO FOR statement output (#4438)

This commit is contained in:
Tobie Morgan Hitchcock 2024-07-30 07:46:35 +01:00 committed by GitHub
parent 6e87f3ef66
commit 05a95df56d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -89,14 +89,14 @@ impl InfoStatement {
"accesses".to_string() => { "accesses".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_root_accesses().await?.iter().map(|v| v.redacted()) { for v in txn.all_root_accesses().await?.iter().map(|v| v.redacted()) {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
"namespaces".to_string() => { "namespaces".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_ns().await?.iter() { for v in txn.all_ns().await?.iter() {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
@ -110,7 +110,7 @@ impl InfoStatement {
"users".to_string() => { "users".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_root_users().await?.iter() { for v in txn.all_root_users().await?.iter() {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
@ -135,21 +135,21 @@ impl InfoStatement {
"accesses".to_string() => { "accesses".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_ns_accesses(ns).await?.iter().map(|v| v.redacted()) { for v in txn.all_ns_accesses(ns).await?.iter().map(|v| v.redacted()) {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
"databases".to_string() => { "databases".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_db(ns).await?.iter() { for v in txn.all_db(ns).await?.iter() {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
"users".to_string() => { "users".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_ns_users(ns).await?.iter() { for v in txn.all_ns_users(ns).await?.iter() {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
@ -179,49 +179,49 @@ impl InfoStatement {
"accesses".to_string() => { "accesses".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_db_accesses(ns, db).await?.iter().map(|v| v.redacted()) { for v in txn.all_db_accesses(ns, db).await?.iter().map(|v| v.redacted()) {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
"analyzers".to_string() => { "analyzers".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_db_analyzers(ns, db).await?.iter() { for v in txn.all_db_analyzers(ns, db).await?.iter() {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
"functions".to_string() => { "functions".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_db_functions(ns, db).await?.iter() { for v in txn.all_db_functions(ns, db).await?.iter() {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
"models".to_string() => { "models".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_db_models(ns, db).await?.iter() { for v in txn.all_db_models(ns, db).await?.iter() {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
"params".to_string() => { "params".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_db_params(ns, db).await?.iter() { for v in txn.all_db_params(ns, db).await?.iter() {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
"tables".to_string() => { "tables".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_tb(ns, db).await?.iter() { for v in txn.all_tb(ns, db).await?.iter() {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
"users".to_string() => { "users".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_db_users(ns, db).await?.iter() { for v in txn.all_db_users(ns, db).await?.iter() {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
@ -249,7 +249,7 @@ impl InfoStatement {
"events".to_string() => { "events".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_tb_events(ns, db, tb).await?.iter() { for v in txn.all_tb_events(ns, db, tb).await?.iter() {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
@ -263,21 +263,21 @@ impl InfoStatement {
"indexes".to_string() => { "indexes".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_tb_indexes(ns, db, tb).await?.iter() { for v in txn.all_tb_indexes(ns, db, tb).await?.iter() {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
"lives".to_string() => { "lives".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_tb_lives(ns, db, tb).await?.iter() { for v in txn.all_tb_lives(ns, db, tb).await?.iter() {
out.insert(v.id.to_string(), v.to_string().into()); out.insert(v.id.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },
"tables".to_string() => { "tables".to_string() => {
let mut out = Object::default(); let mut out = Object::default();
for v in txn.all_tb_views(ns, db, tb).await?.iter() { for v in txn.all_tb_views(ns, db, tb).await?.iter() {
out.insert(v.name.to_string(), v.to_string().into()); out.insert(v.name.to_raw(), v.to_string().into());
} }
out.into() out.into()
}, },