Statement
Object Hierarchy:
Description:
Namespace: Gda
Package: libgda-6.0
Content:
Properties:
- public SqlStatement structure { owned get; set; }
Static methods:
- public static Quark error_quark ()
Creation methods:
- public Statement ()
Creates a new Statement object
Methods:
- public bool check_structure () throws Error
Checks that this's structure is correct.
- public bool check_validity (Connection? cnc) throws Error
If
cnc
is not null then checks that every object (table, field, function) used in this actually exists incnc
's database - public Statement copy ()
Copy constructor
- public bool get_parameters (out Set? out_params) throws Error
Get a new Set object which groups all the execution parameters which this needs.
- public SqlStatementType get_statement_type ()
Get the type of statement held by this.
- public bool is_useless ()
Tells if this is composed only of spaces ( that is it has no real SQL code), and is completely useless as such.
- public bool normalize (Connection cnc) throws Error
"Normalizes" some parts of this, see normalize for more information.
- public SqlStatement? rewrite_for_default_values (Set @params, bool remove) throws Error
Rewrites this and creates a new SqlStatement where all the variables which are to a DEFAULT value (as returned by value_is_default) are either removed from the statement (if
remove
is true) or replaced by the "DEFAULT" keyword (ifremove
is false). - public string serialize ()
Creates a string representing the contents of this.
- public string to_sql_extended (Connection? cnc, Set? @params, StatementSqlFlag flags, out SList<unowned Holder>? params_used) throws Error
Renders this as an SQL statement, with some control on how it is rendered.
Signals:
- public virtual signal void checked (Connection cnc, bool checked)
Gets emitted whenever the structure and contents of
stmt
have been verified (emitted after check_validity). - public virtual signal void reset ()
Gets emitted whenever the
stmt
has changed
Inherited Members:
All known members inherited from class GLib.Object