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
use byteorder::NativeEndian;
use backend::*;
use query_builder::bind_collector::RawBytesBindCollector;
use sql_types::TypeMetadata;
use super::query_builder::MysqlQueryBuilder;
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct Mysql;
#[allow(missing_debug_implementations)]
#[derive(Hash, PartialEq, Eq, Clone, Copy)]
pub enum MysqlType {
Tiny,
Short,
Long,
LongLong,
Float,
Double,
Time,
Date,
DateTime,
Timestamp,
String,
Blob,
}
impl Backend for Mysql {
type QueryBuilder = MysqlQueryBuilder;
type BindCollector = RawBytesBindCollector<Mysql>;
type RawValue = [u8];
type ByteOrder = NativeEndian;
}
impl TypeMetadata for Mysql {
type TypeMetadata = MysqlType;
type MetadataLookup = ();
}
impl SupportsDefaultKeyword for Mysql {}
impl UsesAnsiSavepointSyntax for Mysql {}