run_lua_scan

Function run_lua_scan 

Source
fn run_lua_scan(
    script_path: &Path,
    extra: &Table,
    name: &str,
    timeout_secs: u64,
) -> Result<Vec<SourceItem>>
Expand description

Execute a Lua connector script and return the resulting source items.

This function runs synchronously on a blocking thread. It:

  1. Creates a sandboxed Lua VM via crate::lua_runtime
  2. Loads and executes the script
  3. Calls connector.scan(config)
  4. Converts the returned Lua table to Vec<SourceItem>