Lines Matching refs:app_id
218 pub fn add_vm_id(&mut self, vm_id: &VmId, user_id: i32, app_id: i32) -> Result<()> { in add_vm_id()
224 params![vm_id, &user_id, &app_id, &now], in add_vm_id()
253 pub fn vm_ids_for_app(&mut self, user_id: i32, app_id: i32) -> Result<Vec<VmId>> { in vm_ids_for_app()
258 let rows = stmt.query(params![user_id, app_id]).context("query failed")?; in vm_ids_for_app()
277 pub fn is_vm_id_for_app(&mut self, vm_id: &VmId, user_id: u32, app_id: u32) -> Result<bool> { in is_vm_id_for_app()
285 stmt.query_row(params![vm_id, user_id, app_id], |row| row.get(0)) in is_vm_id_for_app()
291 pub fn count_vm_ids_for_app(&mut self, user_id: i32, app_id: i32) -> Result<usize> { in count_vm_ids_for_app()
296 stmt.query_row(params![user_id, app_id], |row| row.get(0)).context("query failed") in count_vm_ids_for_app()
303 app_id: i32, in oldest_vm_ids_for_app()
314 let rows = stmt.query(params![user_id, app_id, count]).context("query failed")?; in oldest_vm_ids_for_app()
334 let app_id = match row.get(1) { in get_all_owners() localVariable
341 owners.push((user_id, app_id)); in get_all_owners()
397 fn show_contents_for_app(db: &VmIdDb, user_id: i32, app_id: i32, count: usize) { in show_contents_for_app()
402 let mut rows = stmt.query(params![user_id, app_id, count]).unwrap(); in show_contents_for_app()