sqlx_core_oldapi/odbc/
database.rs1use crate::database::{Database, HasArguments, HasStatement, HasStatementCache, HasValueRef};
2use crate::odbc::{
3 OdbcColumn, OdbcConnection, OdbcQueryResult, OdbcRow, OdbcStatement, OdbcTransactionManager,
4 OdbcTypeInfo, OdbcValue, OdbcValueRef,
5};
6
7#[derive(Debug)]
8pub struct Odbc;
9
10impl Database for Odbc {
11 type Connection = OdbcConnection;
12
13 type TransactionManager = OdbcTransactionManager;
14
15 type Row = OdbcRow;
16
17 type QueryResult = OdbcQueryResult;
18
19 type Column = OdbcColumn;
20
21 type TypeInfo = OdbcTypeInfo;
22
23 type Value = OdbcValue;
24}
25
26impl<'r> HasValueRef<'r> for Odbc {
27 type Database = Odbc;
28
29 type ValueRef = OdbcValueRef<'r>;
30}
31
32impl<'q> HasArguments<'q> for Odbc {
33 type Database = Odbc;
34
35 type Arguments = crate::odbc::OdbcArguments;
36
37 type ArgumentBuffer = Vec<crate::odbc::OdbcArgumentValue>;
38}
39
40impl<'q> HasStatement<'q> for Odbc {
41 type Database = Odbc;
42
43 type Statement = OdbcStatement<'q>;
44}
45
46impl HasStatementCache for Odbc {}