xowiki::hstore::double_quote (public)
xowiki::hstore::double_quote value
Defined in packages/xowiki/tcl/xowiki-utility-procs.tcl
From hstore manual: "Double-quote keys and values that include whitespace, commas, =s or >s. To include a double quote or a backslash in a key or value, escape it with a backslash." https://www.postgresql.org/docs/current/hstore.html
- Parameters:
- value (required)
- Returns:
- double_quoted value as appropriate for hstore
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- api_hstore, xowiki_test_cases
Source code: if {[regexp {[\s,\"\'\\=>]} $value]} { return \"[string map [list \" \\\" \\ \\\\ ' ''] $value]\" } return $valueXQL Not present: Generic, PostgreSQL, Oracle