sql

isak 2024-02-09T16:48:01.840369Z

Anyone know of something like pg_dump --schema-only, except less spammy? E.g., no repeating of settings that are default, and using standard abbreviations (e.g., 'timestamptz' instead of 'timestamp with time zone'). Basically closer to what a reasonable person would write for the DDL.

respatialized 2024-02-09T18:44:40.368169Z

https://github.com/camsaul/sqlhoney You could try parsing the DDL into HoneySQL and use Clojure to condense and filter it

isak 2024-02-09T18:51:37.629879Z

Looks like that only supports queries, not DDL, but that is a cool project