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

Testcases:
api_hstore, xowiki_test_cases
Source code:
    if {[regexp {[\s,\"\'\\=>]} $value]} {
      return \"[string map [list \" \\\" \\ \\\\ ' ''] $value]\"
    }
    return $value
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: