Storage models
The SQLAlchemy table definitions used by SQLAlchemyDB.
hololinked.storage.models.SerializedProperty
Bases: MappedAsDataclass, ThingTableBase
Represents a serialized property of a Thing instance stored in the database.
Property Serialized is done, providing unified version for SQLite and other relational tables. Anyway while sending in the wire, the value is serialized to bytes, so when preserialized, the bytes are stored directly. A performance problem is not expected.
Source code in repo/hololinked/hololinked/storage/models.py
hololinked.storage.models.ThingInformation
Bases: MappedAsDataclass, ThingTableBase
Stores information about the Thing instance itself.
Useful metadata which may be later populated in a GUI or client applications need to go here.
Source code in repo/hololinked/hololinked/storage/models.py
Attributes
id
class-attribute
instance-attribute
thing_id
class-attribute
instance-attribute
thing_class
class-attribute
instance-attribute
init_kwargs
class-attribute
instance-attribute
Functions
json
JSON-serializable dictionary representation of the Thing information.
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
|
hololinked.storage.models.DeserializedProperty
dataclass
Property with deserialized value after fetching from database.