Skip to main content

import

Function import 

Source
pub fn import(
    db_path: &Path,
    args: &ImportArgs,
    json_out: bool,
    cli_agent_id: Option<&str>,
    out: &mut CliOutput<'_>,
) -> Result<()>
Expand description

import handler. Reads JSON from import_reader (defaulting to stdin in production) and inserts into the DB.