Skip to main content

Module util

Module util 

Source
Expand description

Small SQL string helpers shared across backends.

Functionsยง

quote_ident
Quote a SQL identifier by wrapping it in double quotes and doubling any internal quote, so names that collide with keywords or contain specials are safe to splice into SQL. quote_ident("select") โ†’ "select"; a name containing a quote has it doubled: quote_ident("a\"b") โ†’ "a""b".