Query Builder

Use when the user needs to build, choose the pattern for, or optimize a SQL query against Protheus ERP tables -- covering Workarea (DbSelectArea/DbSeek) vs Embedded SQL vs TCSqlExec pattern choice, mandatory D_E_L_E_T_/xFilial filters, SIX index-aligned WHERE ordering, FWPreparedStatement parameterization to prevent SQL injection, and cross-database (PostgreSQL/MSSQL/Oracle) portability. Also triggers on Portuguese phrasing like "consulta SQL", "montar query", "otimizar consulta", "qual indice usar", "escolher entre DbSeek ou SQL", or "prevenir SQL injection no Protheus".

thalysjuvenal 4d109a4 6 files · 38.9 KB Updated

File contents

thalysjuvenal/advpl-specialist/tree/main/skills/query-builder commit 4d109a4b4c

Frequently asked questions

npx skillmds@latest add thalysjuvenal/query-builder