SpacetimeDB
SpacetimeDB copied to clipboard
CLI - Help text is wrong for `spacetime sql`
The help text suggests providing the anonymous args in the wrong order:
$ spacetime sql
error: the following required arguments were not provided:
<--interactive|query>
<database>
Usage: spacetime sql <--interactive|query> <database>
For more information, try '--help'.
But the database name actually needs to come before the query, not after:
$ spacetime sql -s local 'select * from Person' test-module
Error: HTTP status client error (400 Bad Request) for url (http://127.0.0.1:3000/database/dns/select%20*%20from%20Person)
$ spacetime sql -s local test-module 'select * from Person'
name
------