gda_batch_new

Nombre

gda_batch_new -- 

Synopsis

Gda_Batch * gda_batch_new ( void);

Arguments

void

-- undescribed --

Description

Creates a new #Gda_Batch object, which can be used in applications to simulate a transaction, that is, a series of commands which will be committed only if only all of them succeed. If any of the commands return an error when executed, all the changes are rolled back (by calling #gda_connection_rollback_transaction).

Although, this behavior is configurable. You can also use it as a way of sending several commands to the underlying database, regardless of the errors found in the process.

Returns

a pointer to the new object, or NULL on error