百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sqlint

> 编程语言
开源

支持 ANSI 和 PostgreSQL 语法的简单 SQL 接口

440 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

支持 ANSI 和 PostgreSQL 语法的简单 SQL 接口

SQLint - a simple SQL linter

About

SQLint is a simple command-line linter which reads your SQL files and reports any syntax errors or warnings it finds.

At this stage, SQLint checks SQL against the ANSI syntax, and uses the PostgreSQL SQL parser to achieve this. SQLint does not have support for non-standard SQL variants (e.g. MySQL), but contributions are welcome.

Installation

SQLint is currently provided as a ruby gem: you can install it using the following command:

gem install sqlint

Usage

To check the syntax of a file containing SQL, simply pass the filename to sqlint on the command line:

sqlint filename.sql

In the absence of a filename, sqlint reads from standard input.

Editor plugins

Support for sqlint is provided for the following editors:

  • Emacs, via Flycheck
  • VIM, via Syntastic, Neomake or ALE
  • SublimeText, via SublimeLinter

Using with pre-commit

Add this to your .pre-commit-hooks.yaml:

yaml
-   repo: https://github.com/purcell/sqlint
    rev: master
    hooks:
    -   id: sqlint

Authors

This software was written by Steve Purcell and Kieran Trezona-le Comte.

License and copyright

Copyright 2015-2018 Powershop NZ Ltd. Copyright 2018-2021 Steve Purcell. MIT license.

Support this project and my other Open Source work via Patreon

LinkedIn profile

✍ sanityinc.com

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言