Skip to main content

Module identifiers

Module identifiers 

Source
Expand description

SQL identifier quoting and sanitization utilities.

This module provides functions for safely quoting SQL identifiers (table names, column names, etc.) to prevent SQL injection and handle special characters.

Functionsยง

quote_ident
Quote a SQL identifier using ANSI double-quoting.
quote_ident_mysql
Quote a SQL identifier using MySQL backtick quoting.
sanitize_identifier
Sanitize a SQL identifier by removing non-alphanumeric/underscore characters.