datasources 0.1.5

Async datasource interfaces, middleware, registry, and test doubles
Documentation
1
2
3
4
5
6
7
8
use crate::row::Row;
use std::any::TypeId;

pub trait IRepository: Send + Sync {
    fn entity_type(&self) -> TypeId {
        TypeId::of::<Row>()
    }
}