Trait gitql_engine::data_provider::DataProvider
source · pub trait DataProvider {
// Required method
fn provide(
&self,
env: &mut Environment,
table: &str,
fields_names: &[String],
titles: &[String],
fields_values: &[Box<dyn Expression>],
hidden_count: i64,
) -> Result<GitQLObject, String>;
}
Expand description
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