Deviopath › Go

Quote an Identifier

Hard · Database

PostgreSQL-style identifiers: wrap in double quotes and double any " inside. "user" becomes "\"user\"" wait — user becomes "user", weird"name becomes "weird""name".

Write QuoteIdent(name).

Next: Build an IN Clause