liquipedia/sqllint
Composer 安装命令:
composer require liquipedia/sqllint
包简介
A thin wrapper around the SqlParser from the phpMyAdmin project which can be used to lint any amount of sql files from the command line.
README 文档
README
This is a thin wrapper around the SqlParser from the phpMyAdmin project which can be used to lint any amount of sql files from the command line.
Installation
Please use Composer to install:
composer require liquipedia/sqllint --dev
Usage
Command line utility
./vendor/bin/sqllint
./vendor/bin/sqllint --report=junit > report-junit.xml
Via composer script
Add this to your composer.json
{
"require-dev": {
"liquipedia/sqllint": "*"
},
"scripts": {
"sqllint": [
"sqllint"
],
"sqllint-junit": [
"sqllint --report=junit > report-junit.xml"
]
}
}
and run
composer sqllint
Parameter
To check out parameters, please refer to the src/Parameters.php file or use the --help parameter.
.sqllint.json
Parameters for SqlLint can optionally also be provided via a .sqllint.json file in the project root. Parameters passed via command line always have precedence over the parameters set in .sqllint.json.
Example:
{
"report": "junit"
}
liquipedia/sqllint 适用场景与选型建议
liquipedia/sqllint 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.09k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2021 年 03 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「sql」 「lint」 「junit」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 liquipedia/sqllint 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 liquipedia/sqllint 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 liquipedia/sqllint 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Generate reports from lint results
PHP linting rules set used by Opay developers
This is the ZooRoyal coding standard.
Query filtering in your frontend
JSON Lint for PHP checks a string for invalid or malformed JSON, control character error, incorrect encoding or just plain old syntax errors. It returns comprehensive feedback in a one-line error message (one-line message especially meant for REST APIs) about the first error that occurred in the (JS
Behat extension that reports with the JUnit format and is compatible with Moodle reruns.
统计信息
- 总下载量: 5.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 34
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2021-03-04