Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split docs into multiple pages for sphinx.
- Loading branch information
Ron DuPlain
committed
Mar 14, 2011
1 parent
6c06d07
commit 30b3ded
Showing
10 changed files
with
307 additions
and
252 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<h3>About Flask-SQLAlchemy</h3> | ||
<p> | ||
Flask-SQLAlchemy provides a SQLAlchemy extension to Flask. | ||
Flask is a micro webdevelopment framework for Python. You are currently | ||
looking at the documentation of the development version. Things are | ||
not stable yet, but if you have some feedback, | ||
<a href="mailto:armin.ronacher@active-4.com">let me know</a>. | ||
</p> | ||
<!-- | ||
<h3>Other Formats</h3> | ||
<p> | ||
You can download the documentation in other formats as well: | ||
</p> | ||
<ul> | ||
<li><a href="http://flask.pocoo.org/docs/flask-docs.pdf">as PDF</a> | ||
<li><a href="http://flask.pocoo.org/docs/flask-docs.zip">as zipped HTML</a> | ||
</ul> | ||
--> | ||
<h3>Useful Links</h3> | ||
<ul> | ||
<li><a href="http://flask.pocoo.org/">The Flask Website</a></li> | ||
<li><a href="http://pypi.python.org/pypi/Flask-SQLAlchemy">Flask-SQLAlchemy @ PyPI</a></li> | ||
<li><a href="http://github.com/mitsuhiko/flask-sqlalchemy">Flask-SQLAlchemy @ github</a></li> | ||
<li><a href="http://github.com/mitsuhiko/flask-sqlalchemy/issues">Issue Tracker</a></li> | ||
</ul> |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p class="logo"><a href="{{ pathto(master_doc) }}"> | ||
<img class="logo" src="{{ pathto('_static/flask-sqlalchemy-small.png', 1) }}" alt="Logo"/> | ||
</a></p> |
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
API | ||
--- | ||
|
||
.. module:: flaskext.sqlalchemy | ||
|
||
This part of the documentation documents all the public classes and | ||
functions in Flask-SQLAlchemy. | ||
|
||
Configuration | ||
````````````` | ||
|
||
.. autoclass:: SQLAlchemy | ||
:members: | ||
|
||
.. attribute:: Query | ||
|
||
The :class:`BaseQuery` class. | ||
|
||
Models | ||
`````` | ||
|
||
.. autoclass:: Model | ||
:members: | ||
|
||
.. autoclass:: BaseQuery | ||
:members: get, get_or_404, paginate, first_or_404 | ||
|
||
.. method:: all() | ||
|
||
Return the results represented by this query as a list. This | ||
results in an execution of the underlying query. | ||
|
||
.. method:: order_by(*criterion) | ||
|
||
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 rows. This results in an execution of the | ||
underlying query. | ||
|
||
Utilities | ||
````````` | ||
|
||
.. autoclass:: Pagination | ||
:members: | ||
|
||
.. 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../CHANGES |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
User's Guide | ||
------------ | ||
|
||
This part of the documentation will show you how to get started in using | ||
Flask-SQLAlchemy with Flask. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
quickstart | ||
signals | ||
|
||
API Reference | ||
------------- | ||
|
||
If you are looking for information on a specific function, class or | ||
method, this part of the documentation is for you. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
api | ||
|
||
Additional Notes | ||
---------------- | ||
|
||
See Flask's license_ for legal information governing this project. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
changelog | ||
|
||
.. _license: http://flask.pocoo.org/docs/license/ |
Oops, something went wrong.