mysqlx.Statement¶
-
class
mysqlx.
Statement
(target, doc_based=True)¶ Bases:
object
Provides base functionality for statement objects.
- Parameters
target (object) – The target database object, it can be
mysqlx.Collection
ormysqlx.Table
.doc_based (bool) – True if it is document based.
-
property
changed
¶ True if this statement has changes.
- Type
bool
-
property
deallocate_prepare_execute
¶ True to deallocate + prepare + execute statement.
- Type
bool
-
property
exec_counter
¶ The number of times this statement was executed.
- Type
int
-
execute
()¶ Execute the statement.
- Raises
NotImplementedError – This method must be implemented.
-
increment_exec_counter
()¶ Increments the number of times this statement has been executed.
-
is_doc_based
()¶ Check if it is document based.
- Returns
True if it is document based.
- Return type
bool
-
property
prepared
¶ True if this statement has been prepared.
- Type
bool
-
property
repeated
¶ True if this statement was executed more than once.
- Type
bool
-
reset_exec_counter
()¶ Resets the number of times this statement has been executed.
-
property
schema
¶ The Schema object.
- Type
-
property
stmt_id
¶ Returns this statement ID.
- Returns
The statement ID.
- Return type
int
-
property
target
¶ The database object target.
- Type
object