Module loglan_db.model_db.base_syllable
This module contains a basic Syllable Model
Classes
class BaseSyllable (**kwargs)
-
Base Syllable's DB Model
Describes a table structure for storing information about loglan syllables.
Show Examples
{'id': 37, 'name': 'zv', 'type': 'InitialCC', 'allowed': True} {'id': 38, 'name': 'cdz', 'type': 'UnintelligibleCCC', 'allowed': False}
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
Instance variables
var allowed
-
Is this syllable acceptable in grammar
bool : nullable=True, unique=False var id
-
Syllable's internal ID number
int : primary_key=True var name
-
Syllable itself
str : max_length=8, nullable=False, unique=False var type
-
Syllable's type
str : max_length=8, nullable=False, unique=False
Inherited members