SELECT HASHOF('main'); | Shows the commit hash of a ref |
SELECT * from dolt_blame_mytable; | Shows who last updated every row of a table |
SELECT * FROM dolt_diff('branch1...branch2'); | Shows a three-dot diff |
SELECT DOLT_REVERT('gtfv1qhr5le61njimcbses9oom0de41e'); | Creates a new commit which reverts the changes in a prior commit |
SELECT * FROM DOLT_PATCH('main', 'WORKING'); | Creates SQL statements to apply a diff between two revisions |
SELECT * FROM dolt_conflicts; | Lists which tables have conflicts after a merge |
SELECT * FROM [dolt_conflicts_mytable]; | Lists the rows in conflict for mytable |
SELECT DOLT_CONFLICTS_RESOLVE('--theirs', 'mytable'); | Resolves conflicts in mytable by taking their changes |
SELECT DOLT_TAG('tag1', 'myBranch'); | Creates a new tag at the HEAD of mybranch |
SELECT DOLT_CHERRY_PICK('qj6ouhjvtrnp1rgbvajaohmthoru2772'); | Applies the changes in a commit to the current branch HEAD |
SELECT * FROM dolt_schema_diff('main', 'branch1', 'mytable'); | Shows schema differences for a table between two commits |
SELECT DOLT_VERIFY_CONSTRAINTS(); | Checks for constraint violations (e.g. after checks had been disabled) |
SELECT DOLT_GC(); | Runs garbage collection to compact the size of the database on disk |
SELECT DOLT_REBASE('--interactive', 'main'); | Begins an interactive rebase session |
SELECT * FROM dolt_reflog('mybranch'); | Shows the history of a ref, included deleted refs |
SELECT * FROM dolt_commit_ancestors where commit_hash = HASHOF('main'); | Shows the parent commit(s) of a commit |
SELECT DOLT_MERGE_BASE('main', 'feature'); | Shows the common ancestor of two commits |
SELECT * FROM dolt_commits; | Shows all commits on all branches |
INSERT INTO dolt_ignore VALUES ('generated_*', true); | Ignores tables matching generated* (won’t be added or committed) |