sqlx/sqlx-mysql/src/database.rs
Ryan Leckey 8203410e3f
reactor(core): remove Rt param from Database trait and remove Connection associated type
- significantly cleans up the sqlx/ zero-prelude wrapping
2021-02-18 23:46:05 -08:00

30 lines
578 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 RawValue = MySqlRawValue<'r>;
}