Loading...
Loading...
Use when the user needs to write, review, or migrate SQL queries in ADVPL/TLPP using BeginSQL/EndSQL blocks and macro expressions (%table%, %xfilial%, %notDel%, %exp%, %Order%) instead of raw TCQuery string concatenation -- covering INNER/LEFT JOIN patterns, aggregations (SUM/COUNT/GROUP BY/HAVING), subqueries, column type declarations, DML via TCSqlExec, and SQL-injection prevention. Also triggers on Portuguese phrasing like "consulta SQL", "query embutida", "migrar TCQuery para BeginSQL", "escrever SELECT com filial e notDel", or "montar JOIN em ADVPL".
npx skill4agent add thalysjuvenal/advpl-specialist embedded-sqlBeginSQL ... EndSQL%table:TABLE%%xfilial:TABLE%%notDel%%exp:EXPRESSION%%Order:TABLE%columnTCQuery*%notDel%GetNextAlias()TCSqlExecprotheus-referenceprotheus-businessdocumentation-patterns| Reference file | Read when |
|---|---|
| reference.md | Always -- BeginSQL syntax, macro expressions, JOIN/aggregation/subquery patterns, DML via TCSqlExec, performance tips, and TCQuery migration |