SqlExpr

This structure contains any expression, either as a value (the @value part is set), a variable (the @param_spec is set), or as other types of expressions.

Note 1 about the @value field: if the expression represents a string value in the SQL statement, the string itself must be represented as it would be in the actual SQL, ie. it should be escaped (accordingly to the escaping rules of the database which will use the SQL). For example a string representing the <userinput>'joe'</userinput> value should be <userinput>"'joe'"</userinput> and not <userinput>"joe"</userinput>.

Note 2 about the @value field: if the expression represents an SQL identifier (such as a table or field name), then the @value_is_ident should be set to true, and @value should be a string which may contain double quotes around SQL identifiers which also are reserved keywords or which are case sensitive.

Constructors

this
this(void* ptr, Flag!"Take" take)

Members

Functions

_cPtr
void* _cPtr(Flag!"Dup" dup)
self
SqlExpr self()

Returns this, for use in with statements.

serialize
string serialize()
takeSelect
void takeSelect(gda.sql_statement.SqlStatement stmt)

Properties

_gType
GType _gType [@property getter]
any
gda.sql_any_part.SqlAnyPart any [@property getter]

Get any field.

caseS
gda.sql_case.SqlCase caseS [@property getter]

Get caseS field.

castAs
string castAs [@property getter]

Get castAs field.

castAs
string castAs [@property setter]

Set castAs field.

cond
gda.sql_operation.SqlOperation cond [@property getter]

Get cond field.

func
gda.sql_function.SqlFunction func [@property getter]

Get func field.

paramSpec
gda.sql_param_spec.SqlParamSpec paramSpec [@property getter]

Get paramSpec field.

select
gda.sql_any_part.SqlAnyPart select [@property getter]

Get select field.

value
gobject.value.Value value [@property getter]

Get value field.

value
gobject.value.Value value [@property setter]

Set value field.

valueIsIdent
bool valueIsIdent [@property getter]

Get valueIsIdent field.

valueIsIdent
bool valueIsIdent [@property setter]

Set valueIsIdent field.

Static functions

_getGType
GType _getGType()

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

_getGType
GType _getGType()

Get the GType of this boxed type.

_gType
GType _gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.