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

Function parse_drop_array_if_exists

nodedb-sql/src/parser/array_stmt/parse.rs:114–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112
113 #[test]
114 fn parse_drop_array_if_exists() {
115 let stmt = try_parse_array_statement("DROP ARRAY IF EXISTS g")
116 .unwrap()
117 .unwrap();
118 match stmt {
119 ArrayStatement::Drop(d) => {
120 assert!(d.if_exists);
121 assert_eq!(d.name, "g");
122 }
123 _ => panic!("wrong variant"),
124 }
125 }
126
127 #[test]
128 fn parse_insert_multi_row() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected