RAMjET

ramjet.database.base_model

Code for the the base model of the database to build other models from.

Module Contents

Classes

BaseModel A general model for the database tables.

Functions

convert_class_to_table_name(model_class: Type[Model]) Creates the table name based on the model class.
database
convert_class_to_table_name(model_class: Type[Model])[source]

Creates the table name based on the model class.

Parameters:model_class – The class to create the table name for.
Returns:The name of the table.
class BaseModel(*args, **kwargs)[source]

Bases: peewee.Model

A general model for the database tables.

class Meta

The meta information for the database models.

database
table_function