def query_account_in_steps(): query1 = Account.query() # Retrieve all Account entitites query2 = query1.filter(Account.userid >= 40) # Filter on userid >= 40 query3 = query2.filter(Account.userid < 50) # Filter on userid < 50 too return query1, query2, query3
def query_account_inequality(): query = Account.query(Account.userid >= 40) return query
def query_account_multiple_filters(): query = Account.query(Account.userid >= 40, Account.userid < 50) return query
def query_account_equality(): query = Account.query(Account.userid == 42) return query