gorm 0.1.4

An orm that is simple to use and prevents all mistakes at compile time
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::ParameterBinder;
use crate::Table;

/// A set of updates to be performed on some row of a table.
pub trait UpdateSet {
    /// The table which this update set operates on.
    type UpdateTable: Table;

    /// Writes the update set as a comma seperated list of assignments to
    /// columns of the table.
    fn write_sql_string<'s, 'a>(
        &'s self,
        f: &mut String,
        parameter_binder: &mut ParameterBinder<'a>,
    ) -> std::fmt::Result
    where
        's: 'a;
}