rsql_driver/
driver.rs

1use crate::Connection;
2use crate::error::Result;
3use async_trait::async_trait;
4use file_type::FileType;
5use mockall::automock;
6use mockall::predicate::str;
7use std::fmt::Debug;
8
9#[automock]
10#[async_trait]
11pub trait Driver: Debug + Send + Sync {
12    fn identifier(&self) -> &'static str;
13    async fn connect(&self, url: &str) -> Result<Box<dyn Connection>>;
14    fn supports_file_type(&self, file_type: &FileType) -> bool;
15}