Locy Rust API Integration¶
Primary Entry Point¶
Core Methods¶
let compiled = db.locy().compile_only(program)?;
let result = db.locy().evaluate(program).await?;
let result = db.locy().evaluate_with_config(program, &cfg).await?;
let explain = db.locy().explain(program).await?;
Config (LocyConfig)¶
Common fields:
max_iterationstimeoutmax_explain_depthmax_slg_depthmax_abduce_candidatesmax_abduce_resultsmax_derived_bytesdeterministic_best_by
Result Shape (LocyResult)¶
derived: HashMap<String, Vec<Row>>stats: LocyStatscommand_results: Vec<CommandResult>
Helpers:
result.rows()result.columns()result.stats()