MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / parse_show_databases

Function parse_show_databases

nodedb-sql/src/ddl_ast/parse/database/dispatch.rs:84–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83 #[test]
84 fn parse_show_databases() {
85 let sql = "SHOW DATABASES";
86 let upper = sql.to_uppercase();
87 let parts: Vec<&str> = sql.split_whitespace().collect();
88 let stmt = try_parse(&upper, &parts, sql).unwrap().unwrap();
89 assert_eq!(stmt, NodedbStatement::Database(DatabaseStmt::ShowDatabases));
90 }
91}

Callers

nothing calls this directly

Calls 2

collectMethod · 0.80
try_parseFunction · 0.70

Tested by

no test coverage detected