diesel/types/
mod.rs

1// All items in this module are deprecated. They are rendered in docs.
2#![allow(missing_docs)]
3#![cfg(feature = "with-deprecated")]
4#![deprecated(since = "1.1.0", note = "Use `sql_types`, `serialize`, or `deserialize` instead")]
5
6#[deprecated(since = "1.1.0", note = "Use `sql_types` instead")]
7pub use sql_types::*;
8
9#[deprecated(since = "1.1.0", note = "Use `deserialize` instead")]
10pub use deserialize::{FromSql, FromSqlRow};
11
12#[deprecated(since = "1.1.0", note = "Use `serialize` instead")]
13pub use serialize::{IsNull, ToSql};
14
15#[deprecated(since = "1.1.0", note = "Use `sql_types::Bool` instead")]
16pub type Bool = ::sql_types::Bool;
17
18#[deprecated(since = "1.1.0", note = "Use `sql_types::TinyInt` instead")]
19pub type TinyInt = ::sql_types::TinyInt;
20
21#[deprecated(since = "1.1.0", note = "Use `sql_types::SmallInt` instead")]
22pub type SmallInt = ::sql_types::SmallInt;
23
24#[deprecated(since = "1.1.0", note = "Use `sql_types::Integer` instead")]
25pub type Integer = ::sql_types::Integer;
26
27#[deprecated(since = "1.1.0", note = "Use `sql_types::BigInt` instead")]
28pub type BigInt = ::sql_types::BigInt;
29
30#[deprecated(since = "1.1.0", note = "Use `sql_types::Float` instead")]
31pub type Float = ::sql_types::Float;
32
33#[deprecated(since = "1.1.0", note = "Use `sql_types::Double` instead")]
34pub type Double = ::sql_types::Double;
35
36#[deprecated(since = "1.1.0", note = "Use `sql_types::Numeric` instead")]
37pub type Numeric = ::sql_types::Numeric;
38
39#[deprecated(since = "1.1.0", note = "Use `sql_types::Text` instead")]
40pub type Text = ::sql_types::Text;
41
42#[deprecated(since = "1.1.0", note = "Use `sql_types::Binary` instead")]
43pub type Binary = ::sql_types::Binary;
44
45#[deprecated(since = "1.1.0", note = "Use `sql_types::Date` instead")]
46pub type Date = ::sql_types::Date;
47
48#[deprecated(since = "1.1.0", note = "Use `sql_types::Interval` instead")]
49pub type Interval = ::sql_types::Interval;
50
51#[deprecated(since = "1.1.0", note = "Use `sql_types::Time` instead")]
52pub type Time = ::sql_types::Time;
53
54#[deprecated(since = "1.1.0", note = "Use `sql_types::Timestamp` instead")]
55pub type Timestamp = ::sql_types::Timestamp;
56
57#[deprecated(since = "1.1.0", note = "Use `sql_types::Datetime` instead")]
58#[cfg(feature = "mysql")]
59pub type Datetime = ::sql_types::Datetime;
60
61#[deprecated(since = "1.1.0", note = "Use `sql_types::Oid` instead")]
62#[cfg(feature = "postgres")]
63pub type Oid = ::sql_types::Oid;
64
65#[deprecated(since = "1.1.0", note = "Use `sql_types::Timestamptz` instead")]
66#[cfg(feature = "postgres")]
67pub type Timestamptz = ::sql_types::Timestamptz;
68
69#[deprecated(since = "1.1.0", note = "Use `sql_types::Array<ST>(ST)` instead")]
70#[cfg(feature = "postgres")]
71pub type Array<ST> = ::sql_types::Array<ST>;
72
73#[deprecated(since = "1.1.0", note = "Use `sql_types::Range<ST>(ST)` instead")]
74#[cfg(feature = "postgres")]
75pub type Range<ST> = ::sql_types::Range<ST>;
76
77#[deprecated(since = "1.1.0", note = "Use `sql_types::Uuid` instead")]
78#[cfg(feature = "postgres")]
79pub type Uuid = ::sql_types::Uuid;
80
81#[deprecated(since = "1.1.0", note = "Use `sql_types::Json` instead")]
82#[cfg(feature = "postgres")]
83pub type Json = ::sql_types::Json;
84
85#[deprecated(since = "1.1.0", note = "Use `sql_types::Jsonb` instead")]
86#[cfg(feature = "postgres")]
87pub type Jsonb = ::sql_types::Jsonb;
88
89#[deprecated(since = "1.1.0", note = "Use `sql_types::Money` instead")]
90#[cfg(feature = "postgres")]
91pub type Money = ::sql_types::Money;
92
93#[deprecated(since = "1.1.0", note = "Use `sql_types::MacAddr` instead")]
94#[cfg(feature = "postgres")]
95pub type MacAddr = ::sql_types::MacAddr;
96
97#[deprecated(since = "1.1.0", note = "Use `sql_types::Inet` instead")]
98#[cfg(feature = "postgres")]
99pub type Inet = ::sql_types::Inet;
100
101#[deprecated(since = "1.1.0", note = "Use `sql_types::Cidr` instead")]
102#[cfg(feature = "postgres")]
103pub type Cidr = ::sql_types::Cidr;
104
105#[deprecated(
106    since = "1.1.0",
107    note = "Use `sql_types::Nullable<ST: NotNull>(ST)` instead"
108)]
109pub type Nullable<ST> = ::sql_types::Nullable<ST>;
110
111#[deprecated(since = "1.1.0", note = "Use `serialize::Output` instead")]
112pub type ToSqlOutput<'a, T, DB> = ::serialize::Output<'a, T, DB>;