forked from pallets-eco/flask-sqlalchemy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
217 additions
and
32 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,73 @@ | ||
.. Flask-SQLAlchemy documentation master file, created by | ||
sphinx-quickstart on Tue Jun 1 14:31:57 2010. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
Flask-SQLAlchemy | ||
================ | ||
|
||
Welcome to Flask-SQLAlchemy's documentation! | ||
============================================ | ||
.. module:: flaskext.sqlalchemy | ||
|
||
Contents: | ||
Flask-SQLAlchemy adds support for `SQLAlchemy`_ to your `Flask`_ | ||
application. This module is currently still under development and the | ||
documentation is lacking. If you want to get started, have a look at the | ||
`example sourcecode`_. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
.. _SQLAlchemy: http://sqlalchemy.org/ | ||
.. _Flask: http://flask.pocoo.org/ | ||
.. _example sourcecode: | ||
http://github.com/mitsuhiko/flask-sqlalchemy/tree/master/examples/ | ||
|
||
Indices and tables | ||
================== | ||
API | ||
--- | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` | ||
This part of the documentation documents each and every public class or | ||
function from Flask-SQLAlchemy. | ||
|
||
Configuration | ||
------------- | ||
|
||
.. autoclass:: SQLAlchemy | ||
:members: | ||
|
||
Models | ||
------ | ||
|
||
.. autoclass:: Model | ||
:members: | ||
|
||
.. autoclass:: BaseQuery | ||
:members: get, get_or_404, paginate | ||
|
||
.. method:: get(ident) | ||
|
||
Return an instance of the object based on the given identifier | ||
(primary key), or `None` if not found. | ||
|
||
.. method:: all() | ||
|
||
Return the results represented by this query as a list. This | ||
results in an execution of the underlying query. | ||
|
||
.. method:: order_by(*criteron) | ||
|
||
apply one or more ORDER BY criterion to the query and return the | ||
newly resulting query. | ||
|
||
.. method:: limit(limit) | ||
|
||
Apply a LIMIT to the query and return the newly resulting query. | ||
|
||
.. method:: offset(offset) | ||
|
||
Apply an OFFSET to the query and return the newly resulting | ||
query. | ||
|
||
.. method:: first() | ||
|
||
Return the first result of this query or `None` if the result | ||
doesn’t contain any row. This results in an execution of the | ||
underlying query. | ||
|
||
.. autoclass:: Pagination | ||
:members: | ||
|
||
Debug Helpers | ||
------------- | ||
|
||
.. autofunction:: get_debug_queries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters