mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-28 03:26:01 -04:00
29 lines
857 B
ReStructuredText
29 lines
857 B
ReStructuredText
.. _functions_toplevel:
|
|
.. _generic_functions:
|
|
|
|
=========================
|
|
SQL and Generic Functions
|
|
=========================
|
|
|
|
.. module:: sqlalchemy.sql.expression
|
|
|
|
SQL functions which are known to SQLAlchemy with regards to database-specific
|
|
rendering, return types and argument behavior. Generic functions are invoked
|
|
like all SQL functions, using the :attr:`func` attribute::
|
|
|
|
select([func.count()]).select_from(sometable)
|
|
|
|
Note that any name not known to :attr:`func` generates the function name as is
|
|
- there is no restriction on what SQL functions can be called, known or
|
|
unknown to SQLAlchemy, built-in or user defined. The section here only
|
|
describes those functions where SQLAlchemy already knows what argument and
|
|
return types are in use.
|
|
|
|
.. automodule:: sqlalchemy.sql.functions
|
|
:members:
|
|
:undoc-members:
|
|
:exclude-members: func
|
|
|
|
|
|
|