ORM & Database
Documentation / ORM & Database / ORM & Database

ORM & Database

Runique uses SeaORM with a Django-like manager provided through the impl_objects! macro.

ModuleDescription
Manager & helpersimpl_objects!, all(), filter(), get(), get_or_404(), FormEntity
CRUD QueriesSELECT, INSERT, UPDATE, DELETE, COUNT, search!
AdvancedTransactions, relations, full CRUD pattern

Form integration: #[form(schema = …)] ties the form to its model module's entity automatically (schema = blog → blog::Entity), which gives Form::objects and search!(@Form => ...). See Forms — entity link.