stripe / pg-schema-diff

Go library for diffing Postgres schemas and generating SQL migrations
MIT License
278 stars 20 forks source link

SQL linting #44

Closed bplunkett-stripe closed 1 year ago

bplunkett-stripe commented 1 year ago

Description

Uses SQLfluff for linting. This linter requires folks to have python installed or use docker. There aren't any super great-looking go SQL linters, and most folks have Python installed on their machines, so it should be fine.

Motivation

Enforce a consistent style in SQL

Testing

Tested locally and in CI