web.db

Package web :: Module db |
[hide private]
[frames] | no frames]

# Module db

source code

Functions | [hide private]
get_tables(model) | source code
init_model() returns the needed Base and metadata for defining new classes. | source code
create_from_model(model, database=`'``sqlite:///database.sqlite``'`) Create tables defined in a model. | source code
drop_from_model(model, database=`'``sqlite:///database.sqlite``'`) Drop tables defined in a model. | source code
connect(database=`'``sqlite:///database.sqlite``'`) | source code
create(database=`'``sqlite:///database.sqlite``'`) | source code

Variables | [hide private]
| models = ``(``'``main.model``'``,` `'``pluginmanager.plugins.model``'``,` `'``user.m``...``
| __package__ = ``'``web``'``

Function Details | [hide private]

### init_model() | source code
returns the needed Base and metadata for defining new classes. New classes should inheritance from Base.
    >>> Base, metadata = init_model()

Variables Details | [hide private]

  ### models Value:
      ('main.model',
       'pluginmanager.plugins.model',
       'user.model',
       'clientjob.model')