Skip to main content

insert_execution_log

Function insert_execution_log 

Source
pub fn insert_execution_log(
    conn: &Connection,
    log: &ExecutionLog,
) -> Result<i64>
Expand description

Insert an execution log entry into the database.

§Arguments

  • conn - Database connection
  • log - Execution log entry to insert

§Returns

Returns the database row ID of the inserted entry.

§Errors

Returns an error if:

  • The execution_id already exists in the database
  • JSON serialization fails
  • Database insertion fails