class Compiled(object):
Known subclasses: sqlalchemy.sql.compiler.DDLCompiler
, sqlalchemy.sql.compiler.SQLCompiler
Represent a compiled SQL or DDL expression.
The __str__ method of the Compiled object should produce the actual text of the statement. Compiled objects are specific to their underlying database dialect, and also may or may not be specific to the columns referenced within a particular set of bind parameters. In no case should the Compiled object be dependent on the actual values of those bind parameters, even though it may reference those values as defaults.
Method | __init__ |
Construct a new .Compiled object. |
Method | __str__ |
Return the string text of the generated SQL or DDL. |
Method | _execute_on_connection |
Undocumented |
Method | construct_params |
Return the bind params for this compiled object. |
Method | process |
Undocumented |
Method | visit_unsupported_compilation |
Undocumented |
Class Variable | _cached_metadata |
Undocumented |
Class Variable | _result_columns |
Undocumented |
Class Variable | cache_key |
Undocumented |
Class Variable | compile_state |
Optional .CompileState object that maintains additional state used by the compiler. |
Instance Variable | _annotations |
Undocumented |
Instance Variable | _gen_time |
Undocumented |
Instance Variable | can_execute |
Undocumented |
Instance Variable | dialect |
Undocumented |
Instance Variable | execution_options |
Undocumented |
Instance Variable | preparer |
Undocumented |
Instance Variable | schema_translate_map |
Undocumented |
Instance Variable | statement |
Undocumented |
Instance Variable | string |
Undocumented |
Property | params |
Return the bind params for this compiled object. |
Property | sql_compiler |
Return a Compiled that is capable of processing SQL expressions. |
sqlalchemy.sql.compiler.SQLCompiler
.Compiled
object.Parameters | |
dialect | .Dialect to compile against. |
statement | _expression.ClauseElement to be compiled. |
schema_translate_map | dictionary of schema names to be translated when forming the resultant SQL
New in version 1.1.
See Also |
render_schema_translate | Undocumented |
compile_kwargs | additional kwargs that will be
passed to the initial call to .Compiled.process . |
Parameters | |
params | a dict of string/object pairs whose values will override bind values compiled in to the statement. |
extracted_parameters | Undocumented |
sqlalchemy.sql.compiler.StrSQLCompiler
Undocumented
sqlalchemy.sql.compiler.SQLCompiler
Optional .CompileState
object that maintains additional
state used by the compiler.
Major executable objects such as _expression.Insert
,
_expression.Update
, _expression.Delete
,
_expression.Select
will generate this
state when compiled in order to calculate additional information about the
object. For the top level object that is to be executed, the state can be
stored here where it can also have applicability towards result set
processing.
sqlalchemy.sql.compiler.SQLCompiler