use sqlx_core::sql_str::SqlStr;
use sqlx_core::statement::Statement;
use sqlx_core::Either;
use crate::{Do, DoArguments, DoColumn, DoTypeInfo};
#[derive(Debug, Clone)]
pub struct DoStatement {
pub(crate) sql: SqlStr,
}
impl Statement for DoStatement {
type Database = Do;
fn into_sql(self) -> SqlStr {
self.sql
}
fn sql(&self) -> &SqlStr {
&self.sql
}
fn parameters(&self) -> Option<Either<&[DoTypeInfo], usize>> {
None
}
fn columns(&self) -> &[DoColumn] {
&[]
}
sqlx_core::impl_statement_query!(DoArguments);
}