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

Function escape_string_prefix

nodedb-sql/src/parser/preprocess/lex.rs:399–408  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397
398 #[test]
399 fn escape_string_prefix() {
400 let segs = segments("SELECT E'foo\\nbar'");
401 assert_eq!(
402 segs,
403 vec![
404 SqlSegment::Text("SELECT "),
405 SqlSegment::SingleQuotedString("E'foo\\nbar'"),
406 ]
407 );
408 }
409
410 // ── first_sql_word ───────────────────────────────────────────────────────
411

Callers

nothing calls this directly

Calls 1

segmentsFunction · 0.85

Tested by

no test coverage detected