[][src]Function proj17_iot_server::persistance::db::insert_played_video

pub fn insert_played_video(
    video_id: i32,
    time_epoch: u64,
    order_id: &String
) -> Result<(), String>

Inserts a played_video row in the database

Arguments

video_id - an i32 representing a video id time_epoch - time of play in epoch seconds order_id - a String representing an order id