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

Function upsert_rewrite

nodedb-sql/src/parser/preprocess/pipeline.rs:155–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153
154 #[test]
155 fn upsert_rewrite() {
156 let result = pp("UPSERT INTO users (name) VALUES ('alice')").unwrap();
157 assert!(result.is_upsert);
158 assert_eq!(result.sql, "INSERT INTO users (name) VALUES ('alice')");
159 }
160
161 #[test]
162 fn object_literal_insert() {

Callers

nothing calls this directly

Calls 1

ppFunction · 0.85

Tested by

no test coverage detected