3
0
Fork 0

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:
Lance Edgar 2024-07-11 12:55:55 -05:00
parent 7012409e1e
commit 375d0be638
19 changed files with 388 additions and 13 deletions

View file

@ -0,0 +1,6 @@
``wuttjamaican.db.model.base``
==============================
.. automodule:: wuttjamaican.db.model.base
:members:

View file

@ -0,0 +1,6 @@
``wuttjamaican.db.model``
=========================
.. automodule:: wuttjamaican.db.model
:members:

View file

@ -11,6 +11,8 @@
conf
db
db.conf
db.model
db.model.base
db.sess
exc
testing

View file

@ -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`_.