GObject.Object
Gda.Statement
Import line: | Gda = imports.gi.Gda; |
GIR File: | Gda-4.0.gir |
C documentation: | GdaStatement |
Class : | Statement |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
object : GObject.Object
read only
|
Gda.Statement | |
priv : Gda.StatementPrivate
read only
|
Gda.Statement | |
structure : void*
|
Gda.Statement |
Method / Constructor | Defined By | |
---|---|---|
new Gda.Statement
(Object properties)
Create a new Gda.Statement
Create a new Gda.Statement
|
||
check_structure
()
:
Boolean
Checks that stmt's structure is correct.
Checks that stmt's structure is correct.
|
Gda.Statement | |
check_validity
(Connection cnc)
:
Boolean
If cnc is not NULL then checks that every object (table, field, function) used in stmt actually exists in cnc's database If cnc is NULL, then cleans anything related to cnc in stmt.
If cnc is not NULL then checks that every object (table, field, function) used in stmt actually exists in cnc's database If cnc is NULL, then cleans anything related to cnc in stmt. See gda_sql_statement_check_validity() for more information.
|
Gda.Statement | |
copy
()
:
Gda.Statement
Copy constructor
Copy constructor
|
Gda.Statement | |
Get a new GdaSet object which groups all the execution parameters which stmt needs.
|
Gda.Statement | |
get_statement_type
()
:
Gda.SqlStatementType
Get the type of statement held by stmt.
Get the type of statement held by stmt. It returns GDA_SQL_STATEMENT_NONE if
|
Gda.Statement | |
is_useless
()
:
Boolean
Tells if stmt is composed only of spaces (that is it has no real SQL code), and is completely useless as such.
Tells if stmt is composed only of spaces (that is it has no real SQL code), and is completely useless as such.
|
Gda.Statement | |
normalize
(Connection cnc)
:
Boolean
"Normalizes" some parts of stmt, see gda_sql_statement_normalize() for more information.
"Normalizes" some parts of stmt, see gda_sql_statement_normalize() for more information.
|
Gda.Statement | |
serialize
()
:
String
Creates a string representing the contents of stmt.
Creates a string representing the contents of stmt.
|
Gda.Statement | |
Renders stmt as an SQL statement, with some control on how it is rendered.
Renders stmt as an SQL statement, with some control on how it is rendered. If cnc is not NULL, then the rendered SQL will better be suited to be used by cnc (in particular it may include some SQL tweaks and/or proprietary extensions specific to the database engine used by cnc): in this case the result is similar to calling gda_connection_statement_to_sql().
|
Gda.Statement | |
to_sql_real
(SqlRenderingContext context)
:
String
Renders stmt to its SQL representation, using context to specify how each part of stmt must be rendered.
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 specialize some aspects of SQL rendering to be adapted to the database,'s own SQL dialect (for example SQLite rewrites the 'FALSE' and 'TRUE' literals as '0' and 'NOT 0').
|
Gda.Statement |
Event | Defined By | |
---|---|---|
|
Gda.Statement | |
reset (Statement self)
:
none
|
Gda.Statement |
Class / Namespace | Method / Signal / Properties |
---|---|
Gda
Method |
Gda.compute_dml_statements
(Connection cnc, Statement select_stmt, Boolean require_pk, Statement insert_stmt, Statement update_stmt, Statement delete_stmt)
:
Boolean
|
Gda
Method |
|
Gda
Method |
|
Gda.Batch
Method |
add_statement
(Statement stmt)
:
none
Add stmt to the list of statements managed by batch.
|
Gda.Batch
Method |
remove_statement
(Statement stmt)
:
none
Removes stmt from the list of statements managed by batch.
|
Gda.Connection
Method |
Renders stmt as an SQL statement, adapted to the SQL dialect used by cnc
|
Gda.Connection
Method |
Ask the database accessed through the cnc connection to prepare the usage of stmt.
|
Gda.Connection
Method |
statement_execute
(Statement stmt, Set params, StatementModelUsage model_usage, Object out_values)
:
GObject.Object
Executes stmt.
|
Gda.Connection
Method |
Executes a selection command on the given connection.
|
Gda.Connection
Method |
statement_execute_select_full
(Statement stmt, Set params, StatementModelUsage model_usage, Array col_types)
:
Gda.DataModel
value.
|
Gda.Connection
Method |
Executes a non-selection statement on the given connection.
|
Gda.Connection
Method |
async_statement_execute
(Statement stmt, Set params, StatementModelUsage model_usage, Array col_types, Boolean need_last_insert_row)
:
Number
This method is similar to gda_connection_statement_execute() but is asynchronous as it method returns immediately with a task ID.
|
Gda.Connection
Method |
Declares that prepared_stmt is a prepared statement object associated to gda_stmt within the connection (meaning the connection increments the reference counter of prepared_stmt).
|
Gda.Connection
Method |
del_prepared_statement
(Statement gda_stmt)
:
none
gda_connection_add_prepared_statement() does.
|
Gda.Connection
Method |
Retrieves a pointer to an object representing a prepared statement for gda_stmt within cnc.
|
Gda.DataSelect
Property |
delete_stmt : Gda.Statement
|
Gda.DataSelect
Property |
insert_stmt : Gda.Statement
|
Gda.DataSelect
Property |
select_stmt : Gda.Statement
read only
|
Gda.DataSelect
Property |
update_stmt : Gda.Statement
|
Gda.DataSelect
Method |
|
Gda.PStmt
Method |
set_gda_statement
(Statement stmt)
:
none
|
Gda.PStmt
Method |
get_gda_statement
()
:
Gda.Statement
|
Gda.RepetitiveStatement
Property |
statement : Gda.Statement
|
Gda.RepetitiveStatement
Method |
Create a new Gda.RepetitiveStatement
|
Gda.SqlBuilder
Method |
get_statement
()
:
Gda.Statement
|
Gda.SqlParser
Method |
contains more than one statement, then the remaining part of the string is not parsed at all, and remain (if not NULL) will point at the first non parsed character.
|
Gda.TreeMgrSelect
Property |
statement : Gda.Statement
|
Gda.TreeMgrSelect
Method |
Create a new Gda.TreeMgrSelect
|