derive-sql 0.13.0

Structure the interaction with SQL databases - currently SQLite and MySQL via trait and a procedural macro
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

/// Define an empty filter, ie a filter clause that is empty and does not trigger any filtering
#[derive(Default)]
pub struct None {}

impl traits::FlavoredFilter for None {
  /// Returns an empty string
  fn filter<C, R>(&self, _: &C) -> Result<String>
  where C: traits::Connection<R>, R: traits::Row,
  { Ok(String::default()) }
}