1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! Traits to define database queries, and their derive macros.
//!
//! This module contains a group of traits that together provide
//! the tools needed to define database queries.
use crateClient;
/// The text of a given `Query` or `Statement`.
///
/// Most types will get the blanket implementation of
/// this trait for implementors of [`StaticQueryText`].
/// The dynamic version exists, however, to enable
/// query combinators.
/// The constant text of a `Query` or `Statement`.
///
/// Types that implement this trait can be prepared
/// statically, without reference to any particular
/// query parameters.
///
/// Don't implement this trait directly, use the
/// derive macro for `Query` or `Statement`.
///
/// Query text is trimmed by the derive macro:
/// A helper trait to build query parameters for a `Client`.
///
/// Types that wish to be used as a `Query` or `Statement`
/// need to be able to be converted to the right
/// parameter type for a given `Client`.
///
/// Don't implement this trait directly, use the
/// derive macro for `Query` or `Statement`.