toql_derive 0.4.0

Library with derive for toql
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::collections::HashMap;

#[derive(Clone, Debug)]
pub struct PredicateArg {
    /// SQL expression
    pub sql: String,
    //// Custom predicate handler, if any
    /// Stores the name of the function
    pub handler: Option<syn::Path>,
    /// Multiple aux params that can be used in ON clauses
    /// HashMap contains name, index of positional arguemnt in SQL expression
    pub on_aux_params: HashMap<String, usize>,
    /// Predicate should be used for count queries
    pub count_filter: bool,
}