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

Function object_literal_upsert

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

Source from the content-addressed store, hash-verified

169
170 #[test]
171 fn object_literal_upsert() {
172 let result = pp("UPSERT INTO users { name: 'bob' }").unwrap();
173 assert!(result.is_upsert);
174 assert!(result.sql.starts_with("INSERT INTO users ("));
175 assert!(result.sql.contains("'bob'"));
176 }
177
178 #[test]
179 fn batch_array_insert() {

Callers

nothing calls this directly

Calls 1

ppFunction · 0.85

Tested by

no test coverage detected