Lines Matching refs:vm_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()
267 Ok(vm_id) => vm_ids.push(vm_id), in vm_ids_from_rows()
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()
601 let mut vm_id = [0u8; 64]; in test_remove_oldest_with_upgrade() localVariable
602 vm_id[0..8].copy_from_slice(&(idx as u64).to_be_bytes()); in test_remove_oldest_with_upgrade()
604 want.push(vm_id); in test_remove_oldest_with_upgrade()
609 params![&vm_id, &USER1, APP_A], in test_remove_oldest_with_upgrade()
620 let mut vm_id = [0u8; 64]; in test_remove_oldest_with_upgrade() localVariable
621 vm_id[0..8].copy_from_slice(&(idx as u64).to_be_bytes()); in test_remove_oldest_with_upgrade()
623 want.push(vm_id); in test_remove_oldest_with_upgrade()
625 db.add_vm_id(&vm_id, USER1, APP_A).unwrap(); in test_remove_oldest_with_upgrade()