SpacetimeDB
SpacetimeDB copied to clipboard
CLI - Fix `sql --interactive` case where returned rows are 0
Description of Changes
See https://github.com/clockworklabs/SpacetimeDB/issues/2358 for more context on this issue and why this was needed.
I think we recently removed the functionality where we return row counts for update and delete statements. This means that the CLI can no longer say things like "N rows updated".
API and ABI breaking changes
No.
Expected complexity level and risk
1
Testing
- [x] No longer crashes when running
updateordeletecommands in interactive mode:
$ "$WORK"/SpacetimeDBPrivate/public/target/debug/spacetimedb-cli sql -s local test-project --interactive
WARNING: This command is UNSTABLE and subject to breaking changes.
┌──────────────────────────────────────────────────────────┐
│ .exit: Exit the REPL │
│ .clear: Clear the Screen │
│ │
│ Give us feedback in our Discord server: │
│ https://discord.gg/w2DVqNZXdN │
└──────────────────────────────────────────────────────────┘
🪐test-project>update person set name='foo'
Time: 1.28ms
🪐test-project>delete from person
Time: 1.34ms
🪐test-project>