dolt icon indicating copy to clipboard operation
dolt copied to clipboard

CLI commands should be equivalent of starting a new session, running equivalent stored procedure, and closing session

Open timsehn opened this issue 3 years ago • 0 comments

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:

  1. We connected to the server via a new session
  2. We ran the equivalent stored stored procedure
  3. 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.

timsehn avatar Jul 11 '22 21:07 timsehn