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

Function parse_drop_collection

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

Source from the content-addressed store, hash-verified

149
150 #[test]
151 fn parse_drop_collection() {
152 let stmt = ok("DROP COLLECTION users");
153 assert_eq!(
154 stmt,
155 NodedbStatement::Collection(CollectionStmt::DropCollection {
156 name: "users".into(),
157 if_exists: false,
158 purge: false,
159 cascade: false,
160 cascade_force: false,
161 })
162 );
163 }
164
165 #[test]
166 fn parse_drop_collection_if_exists() {

Callers

nothing calls this directly

Calls 1

okFunction · 0.70

Tested by

no test coverage detected