dboo::odb::count
template<class selected_type>
size_t count (); // 1)
size_t count(const std::string& clsid ); // 1)
template<class selected_type>
size_t count(FieldComparison* expression); // 2)
size_t count(const std::string& clsid, FieldComparison* expression); // 2)
template<class selected_type>
size_t count(SetComparison* expression); // 2)
size_t count(const std::string& clsid, SetComparison* expression); // 2)
n/a
Returns the number of objects matching an expression. For Node.js, use the function dboo::odb::query.
- 1
Returns the number of objects of specified class
- 2
Returns the number of objects of specified class that matches expression
Type parameters
- selected_type
The type of which to check the number of objects.
Parameters
- clsid
The class name to run the query for.
- expression
The query expression.
Return value
The number of matching objects.
Exceptions
Example