SQLparser
A Quick SQL Parser Designed for MyCAT 2.0
Install / Use
/learn @MyCATApache/SQLparserREADME
SQLParser
通过一次遍历提取SQL相关信息的项目,为MYCAT2.0而设计
还需要完善的部分:
- 注解语法catlet、db_type、sql、schema的提取
- DCL、TCL语法支持
- ""和''字符串支持 √
- 注释支持 √
- 生成sql语句hash值
- 生成schema和table name的hash值 √
- 支持获取limit条数 √
SQLContext考虑实现以下接口:
- sql语句个数(通过 ; 区分) √
- 单个sql语句中token位置,例如 [select(1), from(15), join(26)]
- 单个sql语句表名位置及其hash √
- 单个sql语句库名(与表名相关)位置及其hash √
- 是否包含注解 √
- 注解类型 √
- 注解语句 √
- sql关键字替换
Related Skills
oracle
339.3kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
prose
339.3kOpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.
Command Development
83.9kThis skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
Plugin Structure
83.9kThis skill should be used when the user asks to "create a plugin", "scaffold a plugin", "understand plugin structure", "organize plugin components", "set up plugin.json", "use ${CLAUDE_PLUGIN_ROOT}", "add commands/agents/skills/hooks", "configure auto-discovery", or needs guidance on plugin directory layout, manifest configuration, component organization, file naming conventions, or Claude Code plugin architecture best practices.
