@@ -21,29 +21,92 @@ import (
2121
2222// Init handles initialization of all Postgres-specific and Doltgres-specific Dolt system tables.
2323func Init () {
24- dtables .GetDocsSchema = getDocsSchema
25- doltdb .GetDocTableName = getDocTableName
24+ // Table names
2625 doltdb .GetBranchesTableName = getBranchesTableName
26+ doltdb .GetDocTableName = getDocTableName
27+ doltdb .GetColumnDiffTableName = getColumnDiffTableName
28+ doltdb .GetCommitAncestorsTableName = getCommitAncestorsTableName
29+ doltdb .GetCommitsTableName = getCommitsTableName
30+ doltdb .GetDiffTableName = getDiffTableName
2731 doltdb .GetLogTableName = getLogTableName
32+ doltdb .GetMergeStatusTableName = getMergeStatusTableName
33+ doltdb .GetRemoteBranchesTableName = getRemoteBranchesTableName
34+ doltdb .GetRemotesTableName = getRemotesTableName
35+ doltdb .GetSchemaConflictsTableName = getSchemaConflictsTableName
2836 doltdb .GetStatusTableName = getStatusTableName
37+ doltdb .GetTableOfTablesInConflictName = getTableOfTablesInConflictName
38+ doltdb .GetTableOfTablesWithViolationsName = getTableOfTablesWithViolationsName
2939 doltdb .GetTagsTableName = getTagsTableName
40+
41+ // Schemas
42+ dtables .GetDocsSchema = getDocsSchema
3043}
3144
3245// getBranchesTableName returns the name of the branches table.
3346func getBranchesTableName () string {
3447 return "branches"
3548}
3649
50+ // getColumnDiffTableName returns the name of the column diff table.
51+ func getColumnDiffTableName () string {
52+ return "column_diff"
53+ }
54+
55+ // getCommitAncestorsTableName returns the name of the commit ancestors table.
56+ func getCommitAncestorsTableName () string {
57+ return "commit_ancestors"
58+ }
59+
60+ // getCommitsTableName returns the name of the commits table.
61+ func getCommitsTableName () string {
62+ return "commits"
63+ }
64+
65+ // getDiffTableName returns the name of the diff table.
66+ func getDiffTableName () string {
67+ return "diff"
68+ }
69+
3770// getLogTableName returns the name of the branches table.
3871func getLogTableName () string {
3972 return "log"
4073}
4174
75+ // getMergeStatusTableName returns the name of the merge status table.
76+ func getMergeStatusTableName () string {
77+ return "merge_status"
78+ }
79+
80+ // getRemoteBranchesTableName returns the name of the remote branches table.
81+ func getRemoteBranchesTableName () string {
82+ return "remote_branches"
83+ }
84+
85+ // getRemotesTableName returns the name of the remotes table.
86+ func getRemotesTableName () string {
87+ return "remotes"
88+ }
89+
90+ // getSchemaConflictsTableName returns the name of the schema conflicts table.
91+ func getSchemaConflictsTableName () string {
92+ return "schema_conflicts"
93+ }
94+
4295// getStatusTableName returns the name of the status table.
4396func getStatusTableName () string {
4497 return "status"
4598}
4699
100+ // getTableOfTablesInConflictName returns the name of the conflicts table.
101+ func getTableOfTablesInConflictName () string {
102+ return "conflicts"
103+ }
104+
105+ // getTableOfTablesWithViolationsName returns the name of the constraint violations table.
106+ func getTableOfTablesWithViolationsName () string {
107+ return "constraint_violations"
108+ }
109+
47110// getTagsTableName returns the name of the tags table.
48111func getTagsTableName () string {
49112 return "tags"
0 commit comments