Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 1.31 KB

api.rst

File metadata and controls

64 lines (40 loc) · 1.31 KB

API

flask.ext.sqlalchemy

This part of the documentation documents all the public classes and functions in Flask-SQLAlchemy.

Configuration

SQLAlchemy

Query

The BaseQuery class.

Models

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.

Utilities

Pagination

get_debug_queries