use crate::error::DactylError;
use crate::rows::{Parameter, Rows};
use crate::Statement;
pub trait Adapter: Send + Sync {
fn execute(&self, query: &str, params: &[Parameter]) -> Result<Rows, DactylError>;
fn execute_raw(&self, query: &str, params: &[Parameter]) -> Result<u64, DactylError>;
fn execute_batch(&self, statements: &[Statement]) -> Result<Vec<Rows>, DactylError>;
fn execute_script(&self, query: &str) -> Result<(), DactylError>;
fn last_insert_id(&self) -> Result<i64, DactylError>;
}
#[cfg(feature = "sqlite")]
pub mod sqlite;
#[cfg(feature = "neon")]
pub mod neon;