mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-30 05:11:13 +00:00
31 lines
604 B
Rust
31 lines
604 B
Rust
use sqlx_core::database::{HasOutput, HasRawValue};
|
|
use sqlx_core::Database;
|
|
|
|
use super::{
|
|
MySqlColumn, MySqlOutput, MySqlQueryResult, MySqlRawValue, MySqlRow, MySqlTypeId, MySqlTypeInfo,
|
|
};
|
|
|
|
#[derive(Debug)]
|
|
pub struct MySql;
|
|
|
|
impl Database for MySql {
|
|
type Column = MySqlColumn;
|
|
|
|
type Row = MySqlRow;
|
|
|
|
type QueryResult = MySqlQueryResult;
|
|
|
|
type TypeInfo = MySqlTypeInfo;
|
|
|
|
type TypeId = MySqlTypeId;
|
|
}
|
|
|
|
impl<'x> HasOutput<'x> for MySql {
|
|
type Output = MySqlOutput<'x>;
|
|
}
|
|
|
|
impl<'r> HasRawValue<'r> for MySql {
|
|
type Database = Self;
|
|
type RawValue = MySqlRawValue<'r>;
|
|
}
|