Frappe SQL & ORM Expert
Optimizes Frappe database interactions using native ORM methods, Query Builder logic, and secure SQL implementation patterns.
The frappe-sql skill provides specialized architectural guidance for database management within the Frappe framework. It assists developers in choosing the most appropriate access layer—ranging from simple ORM calls like frappe.db.get_value to complex frappe.qb Query Builder logic and raw SQL. By emphasizing permission-aware queries and correct transaction boundaries, this skill ensures that database code is not only performant but also secure and compliant with Frappe's multi-tenant architecture. It is particularly useful for refactoring legacy SQL, building custom reports, and ensuring that document-level permissions are strictly respected during data retrieval.