compute_dml_statements
Description:
public bool compute_dml_statements (Connection cnc, Statement select_stmt, bool require_pk, out Statement? insert_stmt, out Statement? update_stmt, out Statement? delete_stmt) throws Error
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 | |
select_stmt |
a SELECT Statement (compound statements not handled) |
require_pk |
TRUE if the created statement have to use a primary key |
insert_stmt |
a place to store the created INSERT statement, or null |
update_stmt |
a place to store the created UPDATE statement, or null |
delete_stmt |
a place to store the created DELETE statement, or null |
Returns:
true if no error occurred |
Namespace: Gda
Package: libgda-6.0