I have a Flask application which uses Flask-SQLAlchemy to connect to a database.
I need to check if row with name='reza' exists...
I think I can use Any(), Exists().
user = User.query.filter_by(name='reza').count()
if count > 0:
print 'user exists'