MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / value_to_csv_string

Method value_to_csv_string

gql-cli/src/cli/output.rs:245–252  ·  view source on GitHub ↗

Convert a Value to a CSV-safe string

(value: &Value)

Source from the content-addressed store, hash-verified

243
244 /// Convert a Value to a CSV-safe string
245 fn value_to_csv_string(value: &Value) -> String {
246 let s = Self::value_to_string(value);
247 if s.contains(',') || s.contains('"') || s.contains('\n') {
248 format!("\"{}\"", s.replace('"', "\"\""))
249 } else {
250 s
251 }
252 }
253}

Callers

nothing calls this directly

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected