What problem does it solve?
This Skill consolidates best practices for developing with MySQL and MariaDB in FreePascal/Lazarus using SQLdb/Zeos, covering connection setup, data typing, JSON usage, triggers, stored procedures, replication, and migration scripting.
Core Features & Use Cases
- Connection management: reliable SQLdb/Zeos connections to MySQL/MariaDB servers with sane defaults.
- Data mapping: mapping MySQL types to FreePascal types (ftInteger, ftString, ftJSON, etc) and practical code patterns.
- Advanced features: JSON storage, triggers, procedures, functions, and upsert patterns (ON DUPLICATE KEY UPDATE).
- Migrations & DevOps: schema migrations and versioned scripts for repeatable deployments, including InnoDB defaults and UTF8MB4 usage.
- Guidance & examples: templates and examples for repositories, transactions, error handling and basic security practices.
Quick Start
Configure the MySQL connection via SQLdb/Zeos and create a simple table to validate end-to-end integration.