gda.statement

Module for [Statement] class

Types 4

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Statement self() nothrowReturns `this`, for use in `with` statements.
StatementGidBuilder builder() static nothrowGet builder for [gda.statement.Statement] Returns: New builder object
void * structure() @property nothrow
void structure(void * propval) @property nothrow
glib.types.Quark errorQuark() static nothrow
bool 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 database
gda.statement.Statement copy() nothrowCopy constructor Returns: a the new copy of orig
bool 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() nothrowGet the type of statement held by stmt. It returns GDA_SQL_STATEMENT_NONE if stmt does not hold any statement Returns: the statement type
bool isUseless() nothrowTells 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 nothing
bool normalize(gda.connection.Connection cnc)"Normalizes" some parts of stmt, see [gda.sql_statement.SqlStatement.normalize] for more information.
string serialize() nothrowCreates a string representing the contents of stmt. Returns: a string containing the serialized version of stmt
string 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) nothrowConnect 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) nothrowConnect to `Reset` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GdaStatement object Returns: the new object

Fluent builder implementation template for gda.statement.Statement

Methods
T structure(void * propval) nothrow

Fluent builder for gda.statement.Statement

Methods
Statement build() nothrowCreate object from builder. Returns: New object
Constructors
this(GError * err)
this(Code code, string msg)