easy-sql 0.101.1

Macro-first SQL toolkit with compile-time checked queries, optional migrations on top of sqlx.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use easy_macros::always_context;

use super::{Driver, DriverArguments};

#[always_context]
/// Update payload mapping for a table.
///
/// Prefer implementing this trait via the [`Update`](macro@crate::Update) derive macro; manual
/// implementations may need updates across releases.
pub trait Update<'a, Table, D: Driver>: Sized {
    fn updates(
        self,
        args_list: DriverArguments<'a, D>,
        current_query: &mut String,
        parameter_n: &mut usize,
    ) -> anyhow::Result<DriverArguments<'a, D>>;
}