Format sql in db.sqlalchemy.session docstring

Some SQL in the module wasn't marked as such so it wasn't
nicely highlighted.

Change-Id: If902796886cb614262b305b221fc9890d3fd1c87
This commit is contained in:
Brant Knudson 2014-02-04 15:28:41 -06:00
parent 11f2add9d1
commit 271adfb857
1 changed files with 3 additions and 1 deletions

View File

@ -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);