computeDmlStatements

fnbool computeDmlStatements(gda.connection.Connection cnc, gda.statement.Statement selectStmt, bool requirePk, gda.statement.Statement insertStmt = null, gda.statement.Statement updateStmt = null, gda.statement.Statement deleteStmt = null)

Creates an INSERT, an UPDATE and a DELETE statement from a SELECT statement using the database metadata available in cnc's meta store. Each statements are computed only if the corresponding place to store the created statement is not null.

Parameters

cnca #GdaConnection
selectStmta SELECT #GdaStatement (compound statements not handled)
requirePkTRUE if the created statement have to use a primary key
insertStmta place to store the created INSERT statement, or null
updateStmta place to store the created UPDATE statement, or null
deleteStmta place to store the created DELETE statement, or null

Returns

true if no error occurred

Throws

[ErrorWrap]