Module loglan_db.model_db.base_event
This module contains a basic Event Model
Classes
class BaseEvent (**kwargs)
-
Base Event's DB Model
Describes a table structure for storing information about lexical events.
Show Examples
{'suffix': 'INIT', 'definition': 'The initial vocabulary before updates.', 'date': datetime.date(1975, 1, 1), 'annotation': 'Initial', 'name': 'Start', 'id': 1} {'suffix': 'RDC', 'definition': 'parsed all the words in the dictionary, identified ones that the parser did not recognize as words', 'date': datetime.date(2016, 1, 15), 'annotation': 'Randall Cleanup', 'name': 'Randall Dictionary Cleanup', 'id': 5}
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.
Ancestors
Subclasses
Static methods
def latest() ‑> BaseEvent
-
Gets the latest (current)
BaseEvent
from DB
Instance variables
var annotation
-
Event's annotation (displayed in old format dictionary HTML file)
str : max_length=16, nullable=False, unique=False var appeared_words
-
Relationship query for getting a list of words appeared during this event
query : Optional[List[BaseWord]]
var date
-
Event's starting day
dateime.date : nullable=False, unique=False var definition
-
Event's definition
str : nullable=False, unique=False var deprecated_words
-
Relationship query for getting a list of words deprecated during this event
query : Optional[List[BaseWord]]
var id
-
Event's internal ID number
int : primary_key=True var name
-
Event's short name
str : max_length=64, nullable=False, unique=False var suffix
-
Event's suffix (used to create filename when exporting HTML file)
str : max_length=16, nullable=False, unique=False
Inherited members