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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#![deny(warnings)]
#![cfg_attr(all(feature = "unstable", feature = "postgres"), feature(time2))]
pub mod backend;
pub mod connection;
#[macro_use]
pub mod expression;
#[doc(hidden)]
pub mod persistable;
#[macro_use]
pub mod types;
#[cfg(feature = "postgres")]
pub mod pg;
#[cfg(feature = "sqlite")]
pub mod sqlite;
#[macro_use]
mod macros;
pub mod migrations;
pub mod query_builder;
mod query_dsl;
pub mod query_source;
pub mod result;
#[doc(hidden)]
pub mod row;
pub mod helper_types {
use super::query_dsl::*;
use super::expression::helper_types::Eq;
pub type Select<Source, Selection, Type = <Selection as super::Expression>::SqlType> =
<Source as SelectDsl<Selection, Type>>::Output;
pub type Filter<Source, Predicate> =
<Source as FilterDsl<Predicate>>::Output;
pub type FindBy<Source, Column, Value> =
Filter<Source, Eq<Column, Value>>;
pub type Order<Source, Ordering> =
<Source as OrderDsl<Ordering>>::Output;
pub type Limit<Source> = <Source as LimitDsl>::Output;
pub type Offset<Source> = <Source as OffsetDsl>::Output;
pub type With<'a, Source, Other> = <Source as WithDsl<'a, Other>>::Output;
}
pub mod prelude {
pub use connection::Connection;
pub use expression::{Expression, SelectableExpression, BoxableExpression};
pub use expression::expression_methods::*;
#[doc(inline)]
pub use persistable::Insertable;
pub use query_dsl::*;
pub use query_source::{QuerySource, Queryable, Table, Column, JoinTo};
pub use result::{QueryResult, TransactionError, TransactionResult, ConnectionError, ConnectionResult, OptionalExtension};
}
pub use prelude::*;
#[doc(inline)]
pub use query_builder::functions::{insert, update, delete, select};
pub use result::Error::NotFound;
#[doc(inline)]
pub use types::structs::data_types;