class documentation

class count(GenericFunction):

View In Hierarchy

The ANSI COUNT aggregate function. With no arguments, emits COUNT *.

E.g.:

from sqlalchemy import func
from sqlalchemy import select
from sqlalchemy import table, column

my_table = table('some_table', column('id'))

stmt = select(func.count()).select_from(my_table)

Executing stmt would emit:

SELECT count(*) AS count_1
FROM some_table
Method __init__ Undocumented
Class Variable inherit​_cache Undocumented

Inherited from GenericFunction:

Class Variable ​_register Undocumented
Class Variable coerce​_arguments Undocumented
Instance Variable ​_bind Undocumented
Instance Variable ​_has​_args Undocumented
Instance Variable clause​_expr Undocumented
Instance Variable packagenames Undocumented
Instance Variable type Undocumented
def __init__(self, expression=None, **kwargs):
inherit_cache: bool =