feat: add basic data model support
wuttjamaican will provide a default data model with minimal tables; it's assumed each custom app will extend this model with other tables
This commit is contained in:
parent
7012409e1e
commit
375d0be638
19 changed files with 388 additions and 13 deletions
6
docs/api/wuttjamaican/db.model.base.rst
Normal file
6
docs/api/wuttjamaican/db.model.base.rst
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
``wuttjamaican.db.model.base``
|
||||
==============================
|
||||
|
||||
.. automodule:: wuttjamaican.db.model.base
|
||||
:members:
|
6
docs/api/wuttjamaican/db.model.rst
Normal file
6
docs/api/wuttjamaican/db.model.rst
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
``wuttjamaican.db.model``
|
||||
=========================
|
||||
|
||||
.. automodule:: wuttjamaican.db.model
|
||||
:members:
|
|
@ -11,6 +11,8 @@
|
|||
conf
|
||||
db
|
||||
db.conf
|
||||
db.model
|
||||
db.model.base
|
||||
db.sess
|
||||
exc
|
||||
testing
|
||||
|
|
|
@ -30,6 +30,10 @@ Glossary
|
|||
:term:`app`. There is normally just one "global" app handler;
|
||||
see also :doc:`narr/handlers/app`.
|
||||
|
||||
app model
|
||||
Python module whose namespace contains all the :term:`data
|
||||
models<data model>` used by the :term:`app`.
|
||||
|
||||
app name
|
||||
Code-friendly name for the underlying app/config system
|
||||
(e.g. ``wutta_poser``).
|
||||
|
@ -62,6 +66,11 @@ Glossary
|
|||
:term:`config object`, :term:`config setting`. See also
|
||||
:doc:`narr/config/index`.
|
||||
|
||||
config extension
|
||||
A registered extension for the :term:`config object`. What
|
||||
happens is, a config object is created and then extended by each
|
||||
of the registered config extensions.
|
||||
|
||||
config file
|
||||
A file which contains :term:`config settings<config setting>`.
|
||||
See also :doc:`narr/config/files`.
|
||||
|
@ -79,6 +88,9 @@ Glossary
|
|||
values obtained from the :term:`settings table` as opposed to
|
||||
:term:`config file`. See also :doc:`narr/config/settings`.
|
||||
|
||||
data model
|
||||
Usually, a Python class which maps to a :term:`database` table.
|
||||
|
||||
database
|
||||
Generally refers to a relational database which may be queried
|
||||
using SQL. More specifically, one supported by `SQLAlchemy`_.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue