Skip to content
Compare
Choose a tag to compare
@KaioFelps KaioFelps released this 22 Dec 00:18
· 14 commits to main since this release
34887f5

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.