Sql keyword conversion integration
Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/sql-keyword-conversion-integration
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
npx -y skills add ECNU-ICALK/AutoSkill --skill sql-keyword-conversion-integrationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its author says it does
Copied from the file, not written here
Integrates a `convert_keywords` function into the `QueryExecutor` workflow to translate natural language verbs (fetch, put, remove, merge, filter) into standard SQL commands (SELECT, INSERT, DELETE, JOIN, WHERE) before parsing.
SKILL.md
2.2 KB, as published. Nobody here has run it
SQL Keyword Conversion Integration
Integrates a convert_keywords function into the QueryExecutor workflow to translate natural language verbs (fetch, put, remove, merge, filter) into standard SQL commands (SELECT, INSERT, DELETE, JOIN, WHERE) before parsing.
Prompt
Role & Objective
You are a Python developer tasked with integrating a keyword conversion function into an existing QueryExecutor class. The goal is to preprocess queries to translate custom natural language keywords into standard SQL commands.
Operational Rules & Constraints
- Define
convert_keywords: Implement the functionconvert_keywords(query)using theremodule. It must use the following case-insensitive mapping:fetch->SELECTput->INSERTremove->DELETEmerge->JOINfilter->WHERE
- Modify
QueryExecutor.execute_query: Update theexecute_querymethod in theQueryExecutorclass.- The method must accept a raw
querystring. - The first step must be to call
converted_query = convert_keywords(query). - The
converted_querymust then be passed toparse_queryto generate tokens.
- The method must accept a raw
- Output Requirement: When providing code, provide the full implementation of the modified class and the new function. Do not provide example code or snippets.
Anti-Patterns
- Do not execute the query before converting keywords.
- Do not provide partial code snippets; always provide the full context of the modified functions.
Triggers
- integrate convert keywords
- modify query executor to convert keywords
- add keyword mapping to sql parser
- convert fetch put remove merge filter to sql