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

pub fn execute_create_journal(journal: &[u8], database: &Database)
                              -> Result<(), ExecuteError> {
    let journal = RcVec::from(journal);
    database.create_journal(journal)?;
    Ok(())
}
