Skip to content

Conversation

@agrogers
Copy link

@agrogers agrogers commented Nov 9, 2020

I think that bracket should be there. I dont use py4web so not 100% on that.

I modified some terminology that I found confusing when i was learning pyDAL. db(db.task).select(...) doesn't really return a query - it returns a list of records (or rows). To my mind, the query part is 'db.Task'. The 'select()' executes the query part and returns records (or rows).  I often build big queries with something like q1=db.Task.id>10 and also q2=dbTask.id<100 and then records=db(q1 & q2).select(). So the query parts are inside the brackets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant