datasources 0.1.56

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

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

    fn schema(&self) -> &Schema;
}