mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-02-15 04:09:37 +00:00
46 lines
970 B
Rust
46 lines
970 B
Rust
use crate::database::{Database, HasArguments, HasStatement, HasValueRef};
|
|
use crate::mssql::{
|
|
MssqlArguments, MssqlColumn, MssqlConnection, MssqlQueryResult, MssqlRow, MssqlStatement,
|
|
MssqlTransactionManager, MssqlTypeInfo, MssqlValue, MssqlValueRef,
|
|
};
|
|
|
|
/// MSSQL database driver.
|
|
#[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>;
|
|
}
|