class HasSuffixes(object):
Known subclasses: sqlalchemy.orm.query.Query
, sqlalchemy.sql.expression.Select
, sqlalchemy.sql.selectable.CTE
Undocumented
Method | _setup_suffixes |
Undocumented |
Method | suffix_with |
Add one or more expressions following the statement as a whole. |
Class Variable | _has_suffixes_traverse_internals |
Undocumented |
Instance Variable | _suffixes |
Undocumented |
Add one or more expressions following the statement as a whole.
This is used to support backend-specific suffix keywords on certain constructs.
E.g.:
stmt = select(col1, col2).cte().suffix_with( "cycle empno set y_cycle to 1 default 0", dialect="oracle")
Multiple suffixes can be specified by multiple calls
to _expression.HasSuffixes.suffix_with
.
Parameters | |
*expr | textual or _expression.ClauseElement
construct which
will be rendered following the target clause. |
**kw | A single keyword 'dialect' is accepted. This is an optional string dialect name which will limit rendering of this suffix to only that dialect. |