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

Function object_literal_insert

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

Source from the content-addressed store, hash-verified

160
161 #[test]
162 fn object_literal_insert() {
163 let result = pp("INSERT INTO users { name: 'alice', age: 30 }").unwrap();
164 assert!(!result.is_upsert);
165 assert!(result.sql.starts_with("INSERT INTO users ("));
166 assert!(result.sql.contains("'alice'"));
167 assert!(result.sql.contains("30"));
168 }
169
170 #[test]
171 fn object_literal_upsert() {

Callers

nothing calls this directly

Calls 1

ppFunction · 0.85

Tested by

no test coverage detected