flask.ext.sqlalchemy
This part of the documentation documents all the public classes and functions in Flask-SQLAlchemy.
SQLAlchemy
Query
The BaseQuery
class.
Model
__bind_key__
Optionally declares the bind to use. None refers to the default bind. For more information see binds
.
BaseQuery
all()
Return the results represented by this query as a list. This results in an execution of the underlying query.
order_by(*criterion)
apply one or more ORDER BY criterion to the query and return the newly resulting query.
limit(limit)
Apply a LIMIT to the query and return the newly resulting query.
offset(offset)
Apply an OFFSET to the query and return the newly resulting query.
first()
Return the first result of this query or None if the result doesn’t contain any rows. This results in an execution of the underlying query.
Pagination
get_debug_queries