Top |
GdaBatch * | gda_batch_new () |
GdaBatch * | gda_batch_copy () |
void | gda_batch_add_statement () |
void | gda_batch_remove_statement () |
gchar * | gda_batch_serialize () |
const GSList * | gda_batch_get_statements () |
gboolean | gda_batch_get_parameters () |
The GdaBatch object represents one or more SQL statements (as GdaStatement objects) in a single object.
A GdaBatch can either be built "manually" by assembling together several GdaStatement objects, or from an SQL string using a GdaSqlParser object.
void gda_batch_add_statement (GdaBatch *batch
,GdaStatement *stmt
);
Add stmt
to the list of statements managed by batch
. A GdaStatement object can be
added multiple times to a GdaBatch object.
void gda_batch_remove_statement (GdaBatch *batch
,GdaStatement *stmt
);
Removes stmt
from the list of statements managed by batch
. If stmt
is present several
times in batch
's statements' list, then only the first one is removed.
gchar *
gda_batch_serialize (GdaBatch *batch
);
Creates a string representing the contents of batch
.
const GSList *
gda_batch_get_statements (GdaBatch *batch
);
Get a list of the GdaStatement objects contained in batch
a list of GdaStatement which should not be modified.
[element-type GdaStatement][transfer none]
gboolean gda_batch_get_parameters (GdaBatch *batch
,GdaSet **out_params
,GError **error
);
Get a new GdaSet object which groups all the execution parameters
which batch
needs for all the statements it includes.
This new object is returned though out_params
.
Note that if batch
does not need any parameter, then out_params
is set to NULL
.
batch |
a GdaBatch object |
|
out_params |
[out][transfer full][allow-none] | |
error |
a place to store errors, or |
“changed”
signalvoid user_function (GdaBatch *batch, GObject *changed_stmt, gpointer user_data)
Gets emitted whenever a GdaStatement in the batch
object changes
batch |
the GdaBatch object |
|
changed_stmt |
the statement which has been changed |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First