Skip to content

Commit

Permalink
Merge pull request #2093 from dolthub/fulghum/minor-doc-updates
Browse files Browse the repository at this point in the history
Update `dolt_verify_constraints()` stored procedure to support all constraint types
  • Loading branch information
fulghum committed Apr 3, 2024
2 parents 317c6d8 + 94e2f6f commit f2737cc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions content/reference/sql/version-control/dolt-sql-procedures.md
Original file line number Diff line number Diff line change
Expand Up @@ -1400,8 +1400,7 @@ SELECT * FROM database1.t;
## `DOLT_VERIFY_CONSTRAINTS()`

Verifies that working set changes (inserts, updates, and/or deletes) satisfy the
defined table constraints. Currently, the command only verifies foreign key
constraints. If any constraints are violated they are written to the
defined table constraints. If any constraints are violated they are written to the
[DOLT_CONSTRAINT_VIOLATIONS](./dolt-system-tables.md#doltconstraintviolations) table.

`DOLT_VERIFY_CONSTRAINTS` by default does not detect constraints for row changes
Expand All @@ -1425,11 +1424,11 @@ system table.
### Output Schema

```text
+------------+------+----------------------+
| Field | Type | Description |
+------------+------+----------------------+
| violations | int | number of violations |
+------------+------+----------------------+
+------------+------+-----------------------------------------+
| Field | Type | Description |
+------------+------+-----------------------------------------+
| violations | int | 1 if violations were found, otherwise 0 |
+------------+------+-----------------------------------------+
```

### Example
Expand Down

0 comments on commit f2737cc

Please sign in to comment.