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()
gda.sql_expr.SqlExpr expr() @propertyGet `expr` field. Returns: expression
void expr(gda.sql_expr.SqlExpr propval) @propertySet `expr` field. Params: propval = expression
string tableName() @propertyGet `tableName` field. Returns: table name part of @expr if @expr represents a table
void tableName(string propval) @propertySet `tableName` field. Params: propval = table name part of @expr if @expr represents a table
string as() @propertyGet `as` field. Returns: alias
void as(string propval) @propertySet `as` field. Params: propval = alias
string serialize()Creates 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_)Sets the target alias (AS) to the string held by alias; after call this function alias is freed.
void takeSelect(gda.sql_statement.SqlStatement stmt)Sets 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)Sets 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)