fts_sqlite/impl.rs
1//! Repository trait implementations for the SQLite database.
2//!
3//! This module contains the implementations of all repository traits defined in
4//! `fts-core` for the SQLite database backend.
5
6use crate::{
7 Db,
8 types::{BidderId, DateTime, DemandId, PortfolioId, ProductId},
9};
10use fts_core::ports::Repository;
11
12mod batch;
13mod demand;
14mod portfolio;
15mod product;
16
17impl Repository for Db {
18 type Error = sqlx::Error;
19 type DateTime = DateTime;
20 type BidderId = BidderId;
21 type ProductId = ProductId;
22 type DemandId = DemandId;
23 type PortfolioId = PortfolioId;
24}