Skip to main content

Module sql_utils

Module sql_utils 

Source
Expand description

SQL utility functions for safe query construction.

This module provides functions to safely escape and quote SQL identifiers and string literals to prevent SQL injection vulnerabilities.

Functionsยง

escape_identifier
Escape and quote a PostgreSQL identifier to prevent SQL injection.
escape_sql_string
Escape a string literal for use in SQL queries.