hello,

I thought the DAL was ment to be Pythonic.
Writing a query to search for a records with some specific id,
I have to use the Pythonic "==" instead of the SQL-like "="

Rows = DB ( DB.Excel_List.id == 3 ).select()

Writing a query to search for a records with some a range of id's,
I have to use the SQL-like "belongs"
Rows = DB ( DB.Excel_List.id.belongs((3,4))).select()

instead of the Pythonic "in"
Rows = DB ( DB.Excel_List.id in (3,4) ).select()

Why is that ?

thanks,
Stef Mientki

Reply via email to