Hi
dbshell already passes all unknown arguments through to the underlying
program. For example on postgres you can use the psql '-c' option like so:
$ ./manage.py dbshell -c 'select 123'
?column?
--
123
(1 row)
argparse allows a -- separator to split arguments for dbshell and the
In Adam's blog
post https://adamj.eu/tech/2022/06/29/run-a-django-migration-by-hand/, he
shows a pattern I've used in the past.
Would it be useful to support passing an optional positional argument to
dbshell that is then passed to the dbshell program appropriately? e.g.,
with @filename fo