besu 0.0.1

A typesafe, async, and database-agnostic query builder for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// The definitions of a database table.
///
/// This is implemented on the model-struct which is generated by the `#[derive(Table)]` attribute.
pub trait Table: 'static {
    /// The name of the table. This is used verbatim in the SQL queries.
    const NAME: &'static str;

    /// The user-defined struct representing a single row in the table.
    /// This is the struct that has the `#[derive(Table)]` applied to it.
    type Model;
}