gda.sql_select_target

Module for [SqlSelectTarget] class

Types 1

classSqlSelectTarget

This structure represents a target used to fetch data from in a SELECT statement; it can represent a table or a sub select. Note that the @table_name part <emphasis>will be</emphasis> overwritten by &LIBGDA;, set the value of @expr->value instead.

Fields
Methods
void * _cPtr() nothrow
gda.sql_expr.SqlExpr expr() @property nothrowGet `expr` field. Returns: expression
void expr(gda.sql_expr.SqlExpr propval) @property nothrowSet `expr` field. Params: propval = expression
string tableName() @property nothrowGet `tableName` field. Returns: table name part of @expr if @expr represents a table
void tableName(string propval) @property nothrowSet `tableName` field. Params: propval = table name part of @expr if @expr represents a table
string as() @property nothrowGet `as` field. Returns: alias
void as(string propval) @property nothrowSet `as` field. Params: propval = alias
string serialize() nothrowCreates a new string representing a target used in a SELECT statement after the FROM clause. Returns: a new string with the description of the expression or "null" in case field is invalid.
void takeAlias(gobject.value.Value alias_) nothrowSets the target alias (AS) to the string held by alias; after call this function alias is freed.
void takeSelect(gda.sql_statement.SqlStatement stmt) nothrowSets the target to be a SELECT subquery setting target's expression to use stmt; after call this function the target owns stmt, then you must not free it.
void takeTableName(gobject.value.Value value) nothrowSets the target's name using the string stored in value and the expression to set its value to point to value; after call this function the target owns value, then you must not free it.
Constructors
this(void * ptr, Flag!"Take" take)