Constant iqps_backend::db::queries::INSERT_NEW_QP

source ยท
pub const INSERT_NEW_QP: &str = "INSERT INTO iqps (course_code, course_name, year, exam, semester, filelink, from_library) VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING id";
Expand description

Insert a newly uploaded file in the db (and return the id) Parameters in the following order: course_code, course_name, year, exam, semester, filelink, from_library