mergeFrom
Performs an SQL MERGE operation to insert, update, or delete records in the target table based on a comparison with a source table.
Return
A MergeTableStatement which represents the MERGE operation with the configured actions.
Parameters
The target table type extending from Table.
The source table type extending from Table.
An instance of the source table.
A lambda function with SqlExpressionBuilder as its receiver that should return a Op
A lambda where MergeTableStatement can be configured with specific actions to perform when records are matched or not matched.
Performs an SQL MERGE operation to insert, update, or delete records in the target table based on a comparison with a source table.
Return
A MergeTableStatement which represents the MERGE operation with the configured actions.
Parameters
The target table type extending from Table.
The source table type extending from Table.
An instance of the source table.
A lambda where MergeTableStatement can be configured with specific actions to perform when records are matched or not matched.
Performs an SQL MERGE operation to insert, update, or delete records in the target table based on a comparison with a select query source.
Return
A MergeSelectStatement which represents the MERGE operation with the configured actions.
Parameters
The target table type extending from Table.
represents the aliased query for a complex subquery to be used as the source.
A lambda with a receiver of type SqlExpressionBuilder that returns a condition Op
A lambda where MergeSelectStatement can be configured with specific actions to perform when records are matched or not matched.
Deprecated
This `mergeFrom()` with a nullable `on` parameter will be removed in future releases. Please leave a comment on [YouTrack](https://youtrack.jetbrains.com/issue/EXPOSED-494/Inline-DSL-statement-and-query-functions) with a use-case if a nullable condition cannot be replaced with the new `mergeFrom()` overloads.
Replace with
mergeFrom(source) { body.invoke() }