rok-fluent 0.4.1

Eloquent-inspired async ORM for Rust (PostgreSQL, MySQL, SQLite)
1
2
3
4
5
6
7
8
9
10
11
12
//! [`Table`] trait — implemented by `#[derive(Table)]` for every model struct.

/// A database table with a known name.
///
/// Implemented automatically by `#[derive(Table)]`.  Users never need to
/// implement this by hand.
pub trait Table: Send + Sync + 'static {
    /// The SQL table name (e.g. `"users"`).
    fn table_name() -> &'static str
    where
        Self: Sized;
}