sqlx/sqlx-mysql/src/database.rs
2021-02-26 00:05:33 -08:00

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>;
}