mewlo.mpacks.core.database.mdbmodel_relation module

mdbmodel_relation.py

This file contains some common model relation helpers. Essentially these are full model classes, which serve to map two tables (models) to each other, in an MxN relationship of some sort.

ATTN: THIS CODE IS NOT CURRENTLY USED!

class mewlo.mpacks.core.database.mdbmodel_relation.MewloDbRelationModel[source]

Bases: mewlo.mpacks.core.database.mdbmodel.MewloDbModel

A relation object helper.

class mewlo.mpacks.core.database.mdbmodel_relation.MewloDbRelationModel_FullMtoN[source]

Bases: mewlo.mpacks.core.database.mdbmodel_relation.MewloDbRelationModel

A relation object helper.

classmethod define_fields(dbmanager)[source]

This class-level function defines the database fields for this model.

classmethod make_dbobjectclass(leftclass, rightclass, dbmanager)[source]

Make a derived class.

classmethod set_sideclasses(leftclass, rightclass)[source]
class mewlo.mpacks.core.database.mdbmodel_relation.MewloDbRelationModel_SimpleMtoN[source]

Bases: mewlo.mpacks.core.database.mdbmodel_relation.MewloDbRelationModel

A relation object helper.

classmethod define_fields(dbmanager)[source]

This class-level function defines the database fields for this model.

classmethod make_dbobjectclass(leftclass, rightclass, dbmanager)[source]

Make a derived class.

classmethod set_sideclasses(leftclass, rightclass)[source]

Table Of Contents

Previous topic

mewlo.mpacks.core.database.mdbmodel_log module

Next topic

mewlo.mpacks.core.database.mdbmodel_settings module

This Page