@@ -153,6 +153,12 @@ guaranteed to see these changes reflected in the files on disk.
153
153
+----------+------+
154
154
```
155
155
156
+ ### Example
157
+
158
+ Gets all docs.
159
+
160
+ {% embed url="https://www.dolthub.com/repositories/dolthub/first-hour-db/embed/main?q=select+*+from+dolt_docs%3B " %}
161
+
156
162
## ` dolt_procedures `
157
163
158
164
` dolt_procedures ` stores each stored procedure that has been created
@@ -386,25 +392,22 @@ commit graph and is not subject to versioning semantics.
386
392
+-----------------+----------+------+-----+---------+-------+
387
393
| Field | Type | Null | Key | Default | Extra |
388
394
+-----------------+----------+------+-----+---------+-------+
389
- | database | text | NO | PRI | NULL | |
390
- | table | text | NO | PRI | NULL | |
391
- | index | text | NO | PRI | NULL | |
392
- | position | bigint | NO | PRI | NULL | |
393
- | version | bigint | NO | | NULL | |
394
- | commit_hash | text | NO | | NULL | |
395
+ | database_name | text | NO | PRI | NULL | |
396
+ | table_name | text | NO | PRI | NULL | |
397
+ | index_name | text | NO | PRI | NULL | |
395
398
| row_count | bigint | NO | | NULL | |
396
399
| distinct_count | bigint | NO | | NULL | |
397
400
| null_count | bigint | NO | | NULL | |
398
- | columns | json | NO | | NULL | |
399
- | types | json | NO | | NULL | |
400
- | upper_bound | json | NO | | NULL | |
401
+ | columns | text | NO | | NULL | |
402
+ | types | text | NO | | NULL | |
403
+ | upper_bound | text | NO | | NULL | |
401
404
| upper_bound_cnt | bigint | NO | | NULL | |
402
405
| created_at | datetime | NO | | NULL | |
403
- | mcv1 | json | NO | | NULL | |
404
- | mcv2 | json | NO | | NULL | |
405
- | mcv3 | json | NO | | NULL | |
406
- | mcv4 | json | NO | | NULL | |
407
- | mcvCounts | json | NO | | NULL | |
406
+ | mcv1 | text | NO | | NULL | |
407
+ | mcv2 | text | NO | | NULL | |
408
+ | mcv3 | text | NO | | NULL | |
409
+ | mcv4 | text | NO | | NULL | |
410
+ | mcvCounts | text | NO | | NULL | |
408
411
+-----------------+----------+------+-----+---------+-------+
409
412
` ` `
410
413
@@ -906,7 +909,7 @@ num_inmates_rated_for have changed the most between 2 versions.
906
909
907
910
## `dolt_conflicts`
908
911
909
- dolt_conflicts is a system table that has a row for every table in the working set that has an unresolved merge
912
+ ` dolt_conflicts` is a system table that has a row for every table in the working set that has an unresolved merge
910
913
conflict.
911
914
912
915
```sql
@@ -985,18 +988,18 @@ And of course you can use any combination of `ours`, `theirs` and
985
988
primary key (or keyless hash). If the row does not exist, it will be inserted.
986
989
Updates made to `our_` columns will never delete a row, however.
987
990
988
- - `dolt_conflict_id` is a unique identifier for the conflict. It is particulary
991
+ - `dolt_conflict_id` is a unique identifier for the conflict. It is particularly
989
992
useful when writing software that needs to resolve conflicts automatically.
990
993
991
994
- `from_root_ish` is the commit hash of the "from branch" of the merge. This
992
995
hash can be used to identify which merge produced a conflict, since conflicts
993
- can accumalate across merges.
996
+ can accumulate across merges.
994
997
995
998
{% endhint %}
996
999
997
1000
## `dolt_schema_conflicts`
998
1001
999
- dolt_schema_conflicts is a system table that has a row for every table in the working
1002
+ ` dolt_schema_conflicts` is a system table that has a row for every table in the working
1000
1003
set that has an unresolved schema conflict.
1001
1004
1002
1005
```sql
@@ -1020,19 +1023,19 @@ resolving schema conflicts during merge, see the docs on [conflicts](./merges.md
1020
1023
1021
1024
## `dolt_merge_status`
1022
1025
1023
- The dolt_merge_status system table tells a user if a merge is active. It has the following schema:
1026
+ The ` dolt_merge_status` system table tells a user if a merge is active. It has the following schema:
1024
1027
1025
1028
```sql
1026
1029
CREATE TABLE `dolt_merge_status` (
1027
- -- Whether a merge is currently active or not
1030
+ -- Whether a merge is currently active or not
1028
1031
`is_merging` tinyint NOT NULL,
1029
- -- The commit spec that was used to initiate the merge
1032
+ -- The commit spec that was used to initiate the merge
1030
1033
`source` text,
1031
- -- The commit that the commit spec resolved to at the time of merge
1034
+ -- The commit that the commit spec resolved to at the time of merge
1032
1035
`source_commit` text,
1033
- -- The target destination working set
1036
+ -- The target destination working set
1034
1037
`target` text,
1035
- -- A list of tables that have conflicts or constraint violations
1038
+ -- A list of tables that have conflicts or constraint violations
1036
1039
`unmerged_tables` text
1037
1040
)
1038
1041
```
@@ -1115,13 +1118,13 @@ These tables can be modified in order to update what changes are staged for comm
1115
1118
1116
1119
# ## Schema
1117
1120
1118
- The schema of the source table is going to effect the schema of the workspace table. The first
1121
+ The schema of the source table is going to affect the schema of the workspace table. The first
1119
1122
three column are always the same, then the schema of the source table is used to create " to\_" and
1120
1123
" from\_" columns.
1121
1124
1122
1125
Each row in the ` dolt_workspace_$TABLENAME ` corresponds to a single row update in the table.
1123
1126
1124
- ` ` ` text
1127
+ ` ` ` sql
1125
1128
+------------------+----------+
1126
1129
| field | type |
1127
1130
+------------------+----------+
@@ -1156,7 +1159,7 @@ FROM dolt_workspace_mytable
1156
1159
WHERE staged=false
1157
1160
` ` `
1158
1161
1159
- ` ` ` text
1162
+ ` ` ` sql
1160
1163
+----+--------+-----------+-------+----------+---------+------------+
1161
1164
| id | staged | diff_type | to_id | to_value | from_id | from_value |
1162
1165
+----+--------+-----------+-------+----------+---------+------------+
0 commit comments