From the tutorial:
from sqlalchemy import or_
filter(or_(User.name == 'ed', User.name == 'wendy'))
More Related Contents:
- Writing a connection string when password contains special characters
- Does SQLAlchemy have an equivalent of Django’s get_or_create?
- How to write DataFrame to postgres table
- Speeding up pandas.DataFrame.to_sql with fast_executemany of pyODBC
- CS50: LIKE operator, variable substitution with % expansion
- SQLAlchemy create_all() does not create tables
- SQLAlchemy: What’s the difference between flush() and commit()?
- Group by & count function in sqlalchemy
- Debugging (displaying) SQL command sent to the db by SQLAlchemy
- SQL Alchemy ORM returning a single column, how to avoid common post processing
- How do I execute inserts and updates in an Alembic upgrade script?
- SQLAlchemy, get object not bound to a Session
- Python call sql-server stored procedure with table valued parameter
- Generate sql with subquery as a column in select statement using SQLAlchemy
- Complex foreign key constraint in SQLAlchemy
- Flask sqlalchemy many-to-many insert data
- How to delete a record by id in Flask-SQLAlchemy
- How to upsert pandas DataFrame to PostgreSQL table?
- How to do an upsert with SqlAlchemy?
- SQLAlchemy printing raw SQL from create()
- SQLAlchemy: how to filter date field?
- method of iterating over sqlalchemy model’s defined columns?
- How to execute “left outer join” in SqlAlchemy
- SQLAlchemy: get Model from table name. This may imply appending some function to a metaclass constructor as far as I can see
- pandas to_sql all columns as nvarchar
- How to make mysql connection that requires CA-CERT with sqlalchemy or SQLObject
- Can’t change system default SQLite binary
- SQLAlchemy column name with space
- add column to SQLAlchemy Table
- using sqlalchemy to load csv file into a database