postgres_data_sanitizers.validate¶
Validation functions for PostgreSQL text fields.
RULE: Maximum 100 lines per file.
Functions¶
|
Validate and escape text for PostgreSQL storage. |
Module Contents¶
- postgres_data_sanitizers.validate.validate_postgres_text(text: str | None) str | None¶
Validate and escape text for PostgreSQL storage.
Escapes null characters (preserving data integrity).
- Args:
text: Input text to validate
- Returns:
Escaped text safe for PostgreSQL or None if input was None