Skip to content

RecStructure

Classes:

  • RecStructure

    Dataclass for modeling all of the database structure's Record Structures.

RecStructure

Bases: BaseXmlModel

Dataclass for modeling all of the database structure's Record Structures.

Attributes:

  • rst (list) –

    list of instantiated dataclasses that model all of the database's Record Structures.

Examples:

>>> from heurist.mock_data import DB_STRUCTURE_XML
>>> from heurist.models.structural import HMLStructure
>>>
>>>
>>> # Parse structure
>>> xml = DB_STRUCTURE_XML
>>> hml = HMLStructure.from_xml(xml)
>>>
>>> # Test class
>>> first_record_structure = hml.RecStructure.rst[0]
>>> first_record_structure.rst_ID
1