dolt
dolt copied to clipboard
CLI commands should be equivalent of starting a new session, running equivalent stored procedure, and closing session
This came up in the context of replication where a command line dolt commit did not trigger replication but dolt sql -q "call dolt_commit()" did. Makes no sense.
We need to where a stored procedure exists make the CLI behave as if:
- We connected to the server via a new session
- We ran the equivalent stored stored procedure
- We closed the session
This is a much easier model to explain to customers.
For CLI commands that don't have equivalent stored procedures we're free to deviate from the above.