use database::Database;
use endpoint::execute::ExecuteError;
use utility::rc_vec::RcVec;

pub fn execute_load(extension: &[u8], path: &[u8], database: &Database)
                    -> Result<(), ExecuteError> {
    let extension = RcVec::from(extension);
    let path = RcVec::from(path);
    database.load(extension, path)?;
    Ok(())
}
