diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-17 17:27:21 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-17 17:27:21 -0400 |
| commit | fd8dbf8e78981187d091dcc25e63ddfb4e56a5f8 (patch) | |
| tree | 600eb55ac6ab5ff9615f209a62455a89215472f5 | |
| parent | 9ec01ab35a6c0cfdae6ce8a5f84d5ccaf90a3c44 (diff) | |
| parent | fbfad42cb47fb4b13f2773a82c85e2d606386dbe (diff) | |
| download | sqlalchemy-fd8dbf8e78981187d091dcc25e63ddfb4e56a5f8.tar.gz | |
Merge branch 'ca/dev/add_is_and_isnot_to_tutorial' of https://github.com/charlax/sqlalchemy
| -rw-r--r-- | doc/build/orm/tutorial.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/build/orm/tutorial.rst b/doc/build/orm/tutorial.rst index 96cedc973..7fe43e200 100644 --- a/doc/build/orm/tutorial.rst +++ b/doc/build/orm/tutorial.rst @@ -773,10 +773,16 @@ Here's a rundown of some of the most common operators used in query.filter(User.name == None) + # alternatively, if pep8/linters are a concern + query.filter(User.name.is_(None)) + * IS NOT NULL:: query.filter(User.name != None) + # alternatively, if pep8/linters are a concern + query.filter(User.name.isnot(None)) + * AND:: # use and_() |
