use std::borrow::Cow;
use besu::{DeleteOperation, Dialect, InsertOperation, SelectOperation, UpdateOperation};
#[derive(Debug)]
pub struct SQLite;
impl Dialect for SQLite {
fn positional_param(_: usize) -> Cow<'static, str> {
Cow::Borrowed("?")
}
fn select<V: Default>(op: &SelectOperation) -> (String, V) {
let q = format!(r#"SELECT * FROM "{}""#, op.table);
(q, Default::default())
}
#[allow(clippy::todo)]
fn insert<V>(_op: &InsertOperation) -> (String, V) {
todo!()
}
#[allow(clippy::todo)]
fn update<V>(_op: &UpdateOperation) -> (String, V) {
todo!()
}
#[allow(clippy::todo)]
fn delete<V>(_op: &DeleteOperation) -> (String, V) {
todo!()
}
}