gda.statement
Module for [Statement] class
Types 4
Methods
StatementGidBuilder builder()Get builder for [gda.statement.Statement] Returns: New builder objectvoid * structure() @propertyvoid structure(void * propval) @propertybool checkStructure()Checks that stmt's structure is correct. Returns: TRUE if stmt's structure is correct Throws: [StatementException]bool checkValidity(gda.connection.Connection cnc = null)If cnc is not null then checks that every object (table, field, function) used in stmt actually exists in cnc's databasegda.statement.Statement copy()Copy constructor Returns: a the new copy of origbool getParameters(out gda.set.Set outParams)Get a new #GdaSet object which groups all the execution parameters which stmt needs. This new object is returned though out_params.gda.types.SqlStatementType getStatementType()Get the type of statement held by stmt. It returns GDASQLSTATEMENT_NONE if stmt does not hold any statement Returns: the statement typebool isUseless()Tells if stmt is composed only of spaces (that is it has no real SQL code), and is completely useless as such. Returns: TRUE if executing stmt does nothingbool normalize(gda.connection.Connection cnc)"Normalizes" some parts of stmt, see [gda.sql_statement.SqlStatement.normalize] for more information.string serialize()Creates a string representing the contents of stmt. Returns: a string containing the serialized version of stmtstring toSqlExtended(gda.connection.Connection cnc, gda.set.Set params, gda.types.StatementSqlFlag flags, out gda.holder.Holder[] paramsUsed)Renders stmt as an SQL statement, with some control on how it is rendered.string toSqlReal(gda.sql_rendering_context.SqlRenderingContext context)Renders stmt to its SQL representation, using context to specify how each part of stmt must be rendered. This function is mainly used by database provider's implementations which require to special...gulong connectChecked(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gda.connection.Connection)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == bool)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gda.statement.Statement)))
&& Parameters!T.length < 4)Connect to `Checked` signal.gulong connectReset(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gda.statement.Statement)))
&& Parameters!T.length < 2)Connect to `Reset` signal.Methods
T structure(void * propval)classStatementException : ErrorWrap