Lines Matching refs:stmt
237 let mut stmt = self.conn.prepare(&sql).context("failed to prepare DELETE stmt")?; in delete_vm_ids() localVariable
238 let _rows = stmt.execute(params_from_iter(vm_ids)).context("failed to delete VM IDs")?; in delete_vm_ids()
244 let mut stmt = self in vm_ids_for_user() localVariable
248 let rows = stmt.query(params![user_id]).context("query failed")?; in vm_ids_for_user()
254 let mut stmt = self in vm_ids_for_app() localVariable
258 let rows = stmt.query(params![user_id, app_id]).context("query failed")?; in vm_ids_for_app()
278 let mut stmt = self in is_vm_id_for_app() localVariable
285 stmt.query_row(params![vm_id, user_id, app_id], |row| row.get(0)) in is_vm_id_for_app()
292 let mut stmt = self in count_vm_ids_for_app() localVariable
296 stmt.query_row(params![user_id, app_id], |row| row.get(0)).context("query failed") in count_vm_ids_for_app()
308 let mut stmt = self in oldest_vm_ids_for_app() localVariable
314 let rows = stmt.query(params![user_id, app_id, count]).context("query failed")?; in oldest_vm_ids_for_app()
320 let mut stmt = self in get_all_owners() localVariable
324 let mut rows = stmt.query(()).context("query failed")?; in get_all_owners()
389 let mut stmt = db.conn.prepare("SELECT * FROM main.vmids;").unwrap(); in show_contents() localVariable
390 let mut rows = stmt.query(()).unwrap(); in show_contents()
398 let mut stmt = db in show_contents_for_app() localVariable
402 let mut rows = stmt.query(params![user_id, app_id, count]).unwrap(); in show_contents_for_app()