KilnVM Live Labs /lab/dolt-sql-merge-conflict
Step 1 of 3 Docs Claim This Sandbox
Unclaimed Preview Sandbox · Hosted by KilnVM (15-run evaluation cap). Maintain this tool? Claim & embed on your docs →

Versioned SQL Branching and Merge Conflicts with Dolt

Start a local Dolt MySQL-compatible server, query versioned tables over TCP, reproduce a cell-level merge conflict from salary-fix, and resolve and commit the merge.

Step 1 of 3

Boot dolt sql-server and query over TCP

/workspace/getting_started holds a pre-initialized Dolt database with employees, teams, and employees_teams tables plus a conflicting salary-fix branch.

Start dolt sql-server on 127.0.0.1:3306 and query the employees table over TCP using the mysql client:

bash
(cd getting_started && exec dolt sql-server -H 127.0.0.1) >/tmp/d.log 2>&1 </dev/null & echo $!>/tmp/dolt.pid && while ! mysql --skip-ssl -h127.0.0.1 -uroot getting_started -e "SELECT * FROM employees">e.txt 2>/dev/null; do sleep 0.3; done && cat e.txt