1use crate::{
2 OdbcArguments, OdbcColumn, OdbcConnection, OdbcQueryResult, OdbcRow, OdbcStatement,
3 OdbcTransactionManager, OdbcTypeInfo, OdbcValue,
4};
5
6#[derive(Debug)]
8pub struct Odbc;
9
10impl sqlx_core::database::Database for Odbc {
11 type Connection = OdbcConnection;
12 type TransactionManager = OdbcTransactionManager;
13 type Row = OdbcRow;
14 type QueryResult = OdbcQueryResult;
15 type Column = OdbcColumn;
16 type TypeInfo = OdbcTypeInfo;
17 type Value = OdbcValue;
18 type ValueRef<'r> = crate::value::OdbcValueRef<'r>;
19 type Arguments = OdbcArguments;
20 type ArgumentBuffer = Vec<crate::OdbcArgumentValue>;
21 type Statement = OdbcStatement;
22
23 const NAME: &'static str = "ODBC";
24 const URL_SCHEMES: &'static [&'static str] = &["odbc"];
25}