Reputation: 485
The title says it all. I tried looking through the API but couldn't find a convenient function. I've thought of a number of ways to do this. I could call find()
and count the number of records in the result. I could use the SQLite database and execute a SELECT and count.
Upvotes: 1
Views: 200
Reputation: 497
Donno if you'll ever come back to this question but...
store.find(User).count()
The python console is your friend. This will give you all attributes of an object...
dir(store.find(User))
This will show you what class it returned so you can look at the api docs...
store.find(User).__class__
Upvotes: 0