dsh-sql-format
其他 活跃维护

dsh-sql-format

uckkk/dsh-sql-format

轻量级SQL格式化工具,输入原始SQL语句即可自动完成子句换行排版与关键字大写转换,无冗余依赖配置简单,可快速集成到开发工作流,输出格式统一的SQL语句更便于阅读调试

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
5 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:uckkk/dsh-sql-format
git clone https://github.com/uckkk/dsh-sql-format.git
git clone git@github.com:uckkk/dsh-sql-format.git
README.md main

dsh-sql-format · SQL 格式化

SQL 子句换行、关键字大写,提升可读性。纯 Node 实现(不解析语义)。

提供的工具

工具 作用
format_sql SQL 格式化

安装

dsh plugin add dsh-sql-format

安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-sql-format"。

用法示例

格式化这条 SQL
→ 调用 format_sql(sql="select * from users where age > 18 order by id desc")

安装

dsh plugin add github:uckkk/dsh-sql-format

安装即在本机运行第三方代码,请自行审阅源码。

安装

dsh plugin add github:uckkk/dsh-sql-format

使用

安装后在会话中调用该插件注册的工具即可。

许可

MIT

安装即在本机运行第三方代码,请自行审阅源码。