Skip to main content

Crate drasi_bootstrap_scriptfile

Crate drasi_bootstrap_scriptfile 

Source
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§

ScriptFileBootstrapConfig
Script file bootstrap provider configuration