-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The new command is useful when working with DDlog input relations with primary keys. Operations available on such relations so far are: - insert - fails if a record with the same key exists - delete-by-value, delete-by-key - fail if a record with the specified key does not exist - modify - fails if a record with the specified key does not exist. The new command is similar to insert, except that, if a record with the same key as the one being inserted already exists, it replaces this record with the new one instead of failing. This is convenient in scenarios where the client does not know if the key exists or cannot easily issue a delete command. The insert-or-update command is only applicable to input relations with a primary key. The CLI syntax for the new command is the same as for the `insert` command, but using the `insert_ord_update` keyword: ``` insert_or_update WithKey(1, "bar3"); ``` C API: ``` extern ddlog_cmd* ddlog_insert_or_update_cmd(table_id table, ddlog_record *rec); ```
- Loading branch information
Showing
8 changed files
with
124 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters