gitql_engine/
data_provider.rs

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