Last active
September 14, 2016 15:15
-
-
Save squeaky-pl/5c7bd7e012c258f507391e45d5275a6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [24]: from sqlalchemy.sql.expression import delete | |
In [26]: delete(User).where(User.id == 4) | |
Out[26]: <sqlalchemy.sql.dml.Delete object at 0x7f4b8f7f1b00> | |
In [28]: s = delete(User).where(User.id == 4) | |
In [32]: c = s.compile(dialect=dialect) | |
In [33]: str(c) | |
Out[33]: 'DELETE FROM users WHERE users.id = :id_1' | |
In [35]: c.params | |
Out[35]: {'id_1': 4} | |
In [36]: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment