Module loglan_db.model_export
This module contains an "Export extensions" for LOD dictionary SQL model. Add export() function to db object for returning its text string presentation.
Classes
class AddonExportWordConverter
-
Addon for ExportWord class with converters for properties
Subclasses
Class variables
var affixes : sqlalchemy.orm.query.Query
var complexes : sqlalchemy.orm.query.Query
var notes : Dict[str, str]
var rank : str
var year : datetime.datetime
Instance variables
var e_affixes : str
-
Returns:
var e_rank : str
-
Returns:
var e_source : str
-
Returns:
var e_usedin : str
-
Returns:
var e_year : str
-
Returns:
class ExportAuthor (**kwargs)
-
ExportAuthor Class
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
- BaseAuthor
- sqlalchemy.orm.decl_api.Model
- flask_sqlalchemy.model.Model
- InitBase
- DBBase
Instance variables
var created
var updated
Methods
def export(self) ‑> str
-
Prepare Author data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportDefinition (**kwargs)
-
ExportDefinition Class
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
- BaseDefinition
- sqlalchemy.orm.decl_api.Model
- flask_sqlalchemy.model.Model
- InitBase
- DBBase
Instance variables
var body
var created
var e_grammar : str
-
Prepare grammar data for export
Returns
Formatted string
var grammar_code
var language
var notes
var position
var slots
var updated
var usage
var word_id
Methods
def export(self) ‑> str
-
Prepare Definition data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportEvent (**kwargs)
-
ExportEvent Class
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
Instance variables
var created
var updated
Methods
def export(self) ‑> str
-
Prepare Event data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportSetting (**kwargs)
-
ExportSetting Class
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
- BaseSetting
- sqlalchemy.orm.decl_api.Model
- flask_sqlalchemy.model.Model
- InitBase
- DBBase
Instance variables
var created
var updated
Methods
def export(self) ‑> str
-
Prepare Setting data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportSyllable (**kwargs)
-
ExportSyllable Class
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
- BaseSyllable
- sqlalchemy.orm.decl_api.Model
- flask_sqlalchemy.model.Model
- InitBase
- DBBase
Instance variables
var created
var updated
Methods
def export(self) ‑> str
-
Prepare Syllable data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportType (**kwargs)
-
ExportType Class
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
Instance variables
var created
var description
var group
var parentable
var type
var type_x
var updated
Methods
def export(self) ‑> str
-
Prepare Type data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportWord (**kwargs)
-
ExportWord Class
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
- BaseWord
- sqlalchemy.orm.decl_api.Model
- flask_sqlalchemy.model.Model
- InitBase
- DBBase
- AddonExportWordConverter
Instance variables
var TID_old
var created
var event_end_id
var event_start_id
var id_old
var match
var name
var notes : Dict[str, str]
var origin
var origin_x
var rank : str
var type_id
var updated
var year : datetime.datetime
Methods
def export(self) ‑> str
-
Prepare Word data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportWordSpell (**kwargs)
-
ExportWordSpell Class
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
- BaseWordSpell
- BaseWord
- sqlalchemy.orm.decl_api.Model
- flask_sqlalchemy.model.Model
- InitBase
- DBBase
Instance variables
var TID_old
var created
var event_end_id
var event_start_id
var id_old
var match
var name
var notes
var origin
var origin_x
var rank
var type_id
var updated
var year
Methods
def export(self) ‑> str
-
Prepare WordSpell data for exporting to text file
Returns
Formatted basic string
Inherited members