Merge "Format sql in db.sqlalchemy.session docstring"
This commit is contained in:
commit
fa785cea8f
|
@ -124,7 +124,9 @@ Recommended ways to use sessions within this framework:
|
|||
filter_by(id=subq.as_scalar()).
|
||||
update({'bar': newbar}))
|
||||
|
||||
For reference, this emits approximately the following SQL statement::
|
||||
For reference, this emits approximately the following SQL statement:
|
||||
|
||||
.. code:: sql
|
||||
|
||||
UPDATE bar SET bar = ${newbar}
|
||||
WHERE id=(SELECT bar_id FROM foo WHERE id = ${foo_id} LIMIT 1);
|
||||
|
|
Loading…
Reference in New Issue