Skip to content

Add write support for models#482

Draft
BastianLedererIcinga wants to merge 30 commits into
mainfrom
add-write-support
Draft

Add write support for models#482
BastianLedererIcinga wants to merge 30 commits into
mainfrom
add-write-support

Conversation

@BastianLedererIcinga
Copy link
Copy Markdown
Contributor

@BastianLedererIcinga BastianLedererIcinga commented May 28, 2026

To support modifying models and then persisting them to the DB, an EntityManager is added, which can save and delete any given Model.
To support this a new Model class is added that serves as parent class for all models in the module, it tracks whether it already exists in the DB, and if what columns have been modified.
Calling on on such a model returns a StatefulQuery, which sets the isNew flag to false on all yielded models, so their state tracking works.

@cla-bot cla-bot Bot added the cla/signed CLA is signed by all contributors of a PR label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla/signed CLA is signed by all contributors of a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant