def __init__(self, engine, statement, parameters):
"""constructs a new Compiled object.
engine - SQLEngine to compile against
statement - ClauseElement to be compiled
parameters - optional dictionary indicating a set of bind parameters
specified with this Compiled object. These parameters are the "default"
values corresponding to the ClauseElement's BindParamClauses when the Compiled
is executed. In the case of an INSERT or UPDATE statement, these parameters
will also result in the creation of new BindParamClause objects for each key
and will also affect the generated column list in an INSERT statement and the SET
clauses of an UPDATE statement. The keys of the parameter dictionary can
either be the string names of columns or actual sqlalchemy.schema.Column objects."""
self.engine = engine
self.parameters = parameters
self.statement = statement
评论列表
文章目录