mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-06 00:39:40 -06:00
Neil feedback
This commit is contained in:
@@ -50,6 +50,7 @@ dolt checkout -b <branch-name>
|
||||
- Each SQL session (CLI `dolt sql`, MySQL client, application connection) maintains its own active branch. Run `CALL dolt_checkout('<branch>');` at the beginning of every session or scripted block to ensure you are on the correct branch.
|
||||
- Chain branch changes inside scripts: start with `CALL dolt_checkout('<branch>');`, then run your queries. Do not assume a previous checkout persists for new connections.
|
||||
- When automating, include the checkout in the same transaction / session context where the data changes execute.
|
||||
- A good way to make sure a `dolt sql` session connects to the br1 branch for instance is `dolt --branch br1 sql`.
|
||||
|
||||
### Data Operations
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user