gitql_engine/
data_provider.rs

1
2
3
4
5
6
7
8
use gitql_core::object::Row;

/// DataProvider is a component that used to provide and map the data to the GitQL Engine
///
/// User should implement [`DataProvider`] trait for each data format for example files, logs, api
pub trait DataProvider {
    fn provide(&self, table: &str, selected_columns: &[String]) -> Result<Vec<Row>, String>;
}