Use this function to create a #GdaSqlStatement of the specified type type.
Cleans any data set by a previous call to gda.sql_statement.SqlStatement.checkValidity.
Checks for any error in stmt's structure to make sure the statement is valid (for example a SELECT statement must at least return a column, a DELETE statement must specify which table is targeted).
If cnc is not null, then checks that all the database objects referenced in the statement actually exist in the connection's database (for example the table being updated in a UPDATE statement must exist in the connection's database for the check to succeed). This method fills the stmt->validity_meta_struct attribute.
If mstruct is not null, then checks that all the database objects referenced in the statement i actually referenced in mstruct (for example the table being updated in a UPDATE statement must exist in the connection's database for the check to succeed). This method sets the stmt->validity_meta_struct attribute to mstruct.
Specifies stmt's type of compound
Adds the s sub-statement to the stmt compound statement. s's reference is transferred to stmt (which means stmt is then responsible for freeing it when no longer needed).
Creates a copy of stmt.
Sets the name of the table to delete from in stmt. value's ownership is transferred to stmt (which means stmt is then responsible for freeing it when no longer needed).
Sets the name of the resolution conflict algorithm used by stmt. value's ownership is transferred to stmt (which means stmt is then responsible for freeing it when no longer needed).
Specifies a SELECT statement, the values inserted will be the result set of select. select's ownership is transferred to stmt (which means stmt is then responsible for freeing it when no longer needed).
Sets the name of the table to insert into in stmt. value's ownership is transferred to stmt (which means stmt is then responsible for freeing it when no longer needed).
"Normalizes" (in place) some parts of stmt, which means stmt may be modified. At the moment any "*" field in a SELECT statement will be replaced by one #GdaSqlSelectField structure for each field in the referenced table.
Returns this, for use in with statements.
Creates a string representation of stmt.
Sets the model of the transaction
Sets the name of the transaction
Sets the name of the resolution conflict algorithm used by stmt. value's ownership is transferred to stmt (which means stmt is then responsible for freeing it when no longer needed).
Sets the name of the table to delete from in stmt.
Get stmtType field.
Set stmtType field.
Converts a string to a #GdaSqlStatementType value, see also gda.sql_statement.SqlStatement.typeToString
Converts a #GdaSqlStatementType to a string, see also gda.sql_statement.SqlStatement.stringToType
Pointer to the C boxed value
Get the GType of this boxed type.
Boxed GType property.
Convenience method to return this cast to a type. For use in D with statements.
Make a copy of the wrapped C boxed data.
Copy a C boxed value using g_boxed_copy.
Free a C boxed value using g_boxed_free.
This structure is the top level structure encapsulating several type of statements.