datasources 0.1.5

Async datasource interfaces, middleware, registry, and test doubles
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::connection::Connection;
use crate::converters::{RowTypeConverter, TypeConverter};
use crate::mappers::Mapper;
use crate::readonly_repository_statements::ReadonlyRepositoryStatements;
use crate::row::Row;
use std::sync::Arc;

pub struct BuiltRepository {
    pub connection: Arc<dyn Connection>,
    pub row_converter: Option<RowTypeConverter>,
    pub object_converter: Box<dyn TypeConverter<Row, Row> + Send + Sync>,
    pub property_mappings: Arc<dyn Mapper<String, String> + Send + Sync>,
    pub entity_mapper: Arc<dyn Mapper<String, String> + Send + Sync>,
    pub statements: ReadonlyRepositoryStatements,
    pub ids: Vec<String>,
}