You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
introduced Announcements domain;
DB model, entity and domain entity;
CRUD services;
Sea Repository;
CRUD services factories;
DTOs, presenter and controller;
added CI automated tests + lint checks.
Changed
added SeaMapper trait that defines the 4 most common methods a SEA-ORM mapper might have;
implemented SeaMapper for every mapper and fixed repositories broken method calls due to the mappers changes;
made Sea repositories constructors synchronous;
made services factories synchronous;
move repositories dependencies out of Box in every service;
group services by domain;
group factories by domain;
rename the system to Samambaia.
Changed
database performance has been improved by 92%:
database connection are now created only once at the application bootstrap;
repositories now holds a reference for the database connection, instead of an owned connection;
factories now requires a reference to a SeaService (database connection) in order to instantiate the
repositories, and thus the services;
controllers can now retrieve a reference to the SeaService struct by using the actix_web::web::Data
extractor; they must use it for executing the services factories.