REDAXO SQL Patterns

•
12
•

Optimizes database interactions in REDAXO CMS using secure rex_sql patterns and best practices.

This skill provides specialized guidance for managing database operations within the REDAXO CMS framework. It ensures that developers use the rex_sql wrapper correctly, emphasizing the use of prepared statements to prevent SQL injection, proper table prefixing with rex::getTable() for portability, and fluent builders for cleaner code. Whether you are writing custom addon logic, managing complex transactions, or defining idempotent schema changes in installation scripts, this skill helps generate secure, maintainable, and REDAXO-compliant PHP code.

Características Principales

01Secure parameter binding for all database queries
02Robust transaction handling with built-in rollback support
03Idempotent database schema management with rex_sql_table
04Automatic table prefixing using the rex::getTable() helper
05Fluent builder patterns for INSERT, UPDATE, and DELETE operations
0612 GitHub stars

Casos de Uso

01Writing idempotent install.php and update.php scripts for modules
02Refactoring legacy SQL queries to modern rex_sql standards
03Creating database-driven REDAXO addons with secure data handling