If you want to really make this usable here's what you need to add:
- usql -f foo.sql
- Allow @path/to/file.sql and @@path/to/relative/file.sql references
- Common syntax for referencing env variables in SQL (each DB's utilities have slightly different syntaxes so have to pick one)
- External transaction demarcation to ensure a set of commands get executed together (ex: psql --single-transaction)
- Some autocompletion (if you plan on this being used for interactive use)