Closed adamreese closed 1 year ago
@kate-goldenring I am not sure how to tackle this one. My first thought was we could allow --label
(or --app/--label
) instead of the name, but that doesn't mesh super comfortably with the current positional syntax - we'd have to treat the first positional argument as the statement if --label
was present, and disallow a second positional argument.
The alternative is to make a breaking change away from positional arguments to spin cloud sqlite execute --database feline-dustbin @migration.sql
(or even --database feline-dustbin --sql @migration.sql
). Then we could allow --label
as an alternative to --database
.
Thoughts?
@itowlson this is tricky because as you say, you must either provide DB name or both app and label. I think our best option here is to break the CLI experience. I don't think we need the --sql
flag rather the only positional argument could be the statement to execute
When running sqlite commands the name of the database is required. This makes it difficult to run ci deployments using migrations without using awk.
The work around is