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
use crate::database::{Database, HasArguments, HasStatement, HasValueRef};
use crate::mssql::{
MssqlArguments, MssqlColumn, MssqlConnection, MssqlQueryResult, MssqlRow, MssqlStatement,
MssqlTransactionManager, MssqlTypeInfo, MssqlValue, MssqlValueRef,
};
#[derive(Debug)]
pub struct Mssql;
impl Database for Mssql {
type Connection = MssqlConnection;
type TransactionManager = MssqlTransactionManager;
type Row = MssqlRow;
type QueryResult = MssqlQueryResult;
type Column = MssqlColumn;
type TypeInfo = MssqlTypeInfo;
type Value = MssqlValue;
}
impl<'r> HasValueRef<'r> for Mssql {
type Database = Mssql;
type ValueRef = MssqlValueRef<'r>;
}
impl<'q> HasStatement<'q> for Mssql {
type Database = Mssql;
type Statement = MssqlStatement<'q>;
}
impl HasArguments<'_> for Mssql {
type Database = Mssql;
type Arguments = MssqlArguments;
type ArgumentBuffer = Vec<u8>;
}