Expand description
ScriptFile bootstrap plugin for Drasi
This plugin provides the ScriptFile bootstrap provider implementation for reading bootstrap data from JSONL script files.
§Example
use drasi_bootstrap_scriptfile::ScriptFileBootstrapProvider;
// Using the builder
let provider = ScriptFileBootstrapProvider::builder()
.with_file("/path/to/data.jsonl")
.with_file("/path/to/more_data.jsonl")
.build();
// Or using configuration
use drasi_lib::bootstrap::ScriptFileBootstrapConfig;
let config = ScriptFileBootstrapConfig {
file_paths: vec!["/path/to/data.jsonl".to_string()],
};
let provider = ScriptFileBootstrapProvider::new(config);
// Or using with_paths directly
let provider = ScriptFileBootstrapProvider::with_paths(vec![
"/path/to/data.jsonl".to_string()
]);Re-exports§
pub use script_file::ScriptFileBootstrapProvider;pub use script_file::ScriptFileBootstrapProviderBuilder;
Modules§
- script_
file - Script file bootstrap provider for reading JSONL bootstrap data
- script_
reader - Bootstrap script reader for processing JSONL script files
- script_
types - Bootstrap script record type definitions
Structs§
- Script
File Bootstrap Config - Script file bootstrap provider configuration