tailwag_orm 0.1.0

An ORM for building Postgres schemas and data access with a Manager pattern, backed by sqlx.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::sync::{Arc, Mutex};

use crate::queries::Insertable;

use super::PostgresDataProvider;

/// ThreadedDataManager? Or Cursor?
///
/// Goal: Be able to use this as a local cache AND a way of updating remotely.
pub struct ThreadedDataManager<T>
where
    T: Insertable,
{
    _items: Arc<Mutex<Vec<T>>>,
    _data_provider: PostgresDataProvider<T>,
}