use crate::http::errors::ApiError;
pub(crate) trait StepRunner: Sync {
type Error: From<ApiError> + std::fmt::Display + Send;
async fn run(&self, statement: &str) -> Result<(), Self::Error>;
async fn rows(&self, query: &str) -> Result<Vec<Vec<Option<String>>>, Self::Error>;
fn code(error: &Self::Error) -> Option<String>;
fn ddl(&self) -> &tokio::sync::Mutex<()>;
}