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