diff options
author | Lele Gaifax <lele@metapensiero.it> | 2008-05-15 00:06:04 +0000 |
---|---|---|
committer | Lele Gaifax <lele@metapensiero.it> | 2008-05-15 00:06:04 +0000 |
commit | 0905bb4ba6e19e72ade71fbb926fc8490568ca0f (patch) | |
tree | 4dc43fd51f4332752e017f397516190e0758e484 /lib/sqlalchemy/sql/expression.py | |
parent | c6e654db795a4469bd12788ac392a75e5d1efe47 (diff) | |
download | sqlalchemy-0905bb4ba6e19e72ade71fbb926fc8490568ca0f.tar.gz |
Augment expression.Delete() with a kwargs, like Insert() and Update()
Diffstat (limited to 'lib/sqlalchemy/sql/expression.py')
-rw-r--r-- | lib/sqlalchemy/sql/expression.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index f97bd0cf3..6eabd8153 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -3420,14 +3420,16 @@ class Update(_ValuesBase): class Delete(_UpdateBase): - def __init__(self, table, whereclause, bind=None): + def __init__(self, table, whereclause, bind=None, **kwargs): self._bind = bind self.table = table if whereclause: self._whereclause = _literal_as_text(whereclause) else: self._whereclause = None - + + self.kwargs = kwargs + def get_children(self, **kwargs): if self._whereclause is not None: return self._whereclause, |