Flask SQLAlchemy filter by value OR another
<p>I have a Flask project that interacts with <code>MySQL</code> db through <code>Flask-SQLAlchemy</code>.</p>
<p>My question is, how to select a row from the database based on a value OR another value.</p>
<h3>The results I want in SQL looks like this</h3>
<pre><code>SELECT id FROM users WHERE email=email OR name=name;
</code></pre>
<p>How to achieve that in <code>Flask-SQLAlchemy</code>?</p>