Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
add_table_row [2013/08/08 16:01] admin created |
add_table_row [2026/08/28 03:09] (current) hermann Sync from local documentation review |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Description ===== | ===== Description ===== | ||
| - | This functor adds a row in specified table. | + | Inserts a row into the specified table. |
| ===== Inputs ===== | ===== Inputs ===== | ||
| - | ^ Name ^ Type ^ Description ^ | + | ^ Name ^ Type ^ Description ^ |
| - | | Table | [[Table Type|Table]] | Table where the new row will be created. | | + | | Table | [[Table Type]] | Table where the new row will be created. | |
| - | | Values | [[Tuple Type|Tuple]] | All values to be added as the new row. | | + | | Values | [[Tuple Type]] | All values to be added as the new row. | |
| + | |||
| + | ===== Optional Inputs ===== | ||
| + | |||
| + | None. | ||
| ===== Outputs ===== | ===== Outputs ===== | ||
| - | ^ Name ^ Type ^ Description ^ | + | ^ Name ^ Type ^ Description ^ |
| - | | Result | [[Table Type|Table]] | The resulting table containing the new row. | | + | | Result | [[Table Type]] | The resulting table containing the new row. | |
| ===== Group ===== | ===== Group ===== | ||
| - | [[Functor List#Table|Table]] | + | [[Functor List#Table | Table]] |
| ===== Notes ===== | ===== Notes ===== | ||
| - | The tuple corresponding to the new row must have elements corresponding to all table columns. Otherwise, an error will be reported. | + | The tuple corresponding to the new row must have elements corresponding to all of the table's columns, otherwise this functor reports an error. |
| + | |||
| + | If a row with the same keys as the given tuple already exists in the input table, the existing row is updated with the new values. | ||
| ===== Internal Name ===== | ===== Internal Name ===== | ||