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

Function parse

nodedb-sql/src/ddl_ast/parse/tenant.rs:173–177  ·  view source on GitHub ↗
(sql: &str)

Source from the content-addressed store, hash-verified

171 use crate::ddl_ast::statement::AlterTenantOperation;
172
173 fn parse(sql: &str) -> Option<Result<NodedbStatement, SqlError>> {
174 let upper = sql.to_uppercase();
175 let parts: Vec<&str> = sql.split_whitespace().collect();
176 try_parse(&upper, &parts, sql)
177 }
178
179 fn ok(sql: &str) -> NodedbStatement {
180 parse(sql)

Callers 2

okFunction · 0.70

Calls 2

collectMethod · 0.80
try_parseFunction · 0.70

Tested by 1