Top | ![]() |
![]() |
![]() |
![]() |
void | gda_sql_statement_trans_take_mode () |
void | gda_sql_statement_trans_set_isol_level () |
void | gda_sql_statement_trans_take_name () |
void gda_sql_statement_trans_take_mode (GdaSqlStatement *stmt
,GValue *value
);
Sets the model of the transaction
value
's ownership is transferred to
stmt
(which means stmt
is then responsible for freeing it when no longer needed).
void gda_sql_statement_trans_set_isol_level (GdaSqlStatement *stmt
,GdaTransactionIsolation level
);
void gda_sql_statement_trans_take_name (GdaSqlStatement *stmt
,GValue *value
);
Sets the name of the transaction
value
's ownership is transferred to
stmt
(which means stmt
is then responsible for freeing it when no longer needed).
typedef struct { GdaSqlAnyPart any; GdaTransactionIsolation isolation_level; gchar *trans_mode; /* DEFERRED, IMMEDIATE, EXCLUSIVE, READ_WRITE, READ_ONLY */ gchar *trans_name; } GdaSqlStatementTransaction;
The statement is a transaction management related statement (BEGIN, ROLLBACK, etc). The GdaSqlStatementTransaction structure does not hold enough information to reconstruct the complete SQL statement (some information may be missing) - the aim of this structure is to identify a minimum set of information in the transaction statement. Note that the complete SQL which created the statement should be available in the GdaSqlStatement structure which encapsulates this structure.