computeDmlStatements
fn
bool 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
cnc | a #GdaConnection |
selectStmt | a SELECT #GdaStatement (compound statements not handled) |
requirePk | TRUE if the created statement have to use a primary key |
insertStmt | a place to store the created INSERT statement, or null |
updateStmt | a place to store the created UPDATE statement, or null |
deleteStmt | a place to store the created DELETE statement, or null |
Returns
true if no error occurred
Throws
[ErrorWrap]