Comment

Comment by PhilipTrauner

There's a similar project (https://github.com/erik/squabble), that uses a portable version of Postgres' SQL parser to spit out an AST, which lints can consequently traverse. This approach alleviates the need for bringing up a Postgres cluster to lint the schema. I'd be curious to know if there's something to be gained by depending on a running database instance (especially because it complicates CI).

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton