mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
remove constructions not in use
This commit is contained in:
parent
84926a4e8c
commit
a95832f5fc
@ -2,7 +2,6 @@ use gtk::glib::DateTime;
|
||||
use sqlite::{Connection, Error, Transaction};
|
||||
use std::{rc::Rc, sync::RwLock};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Table {
|
||||
pub id: i64,
|
||||
pub is_active: bool,
|
||||
@ -167,10 +166,6 @@ pub fn select(tx: &Transaction) -> Result<Vec<Table>, Error> {
|
||||
Ok(records)
|
||||
}
|
||||
|
||||
pub fn delete(tx: &Transaction, id: i64) -> Result<usize, Error> {
|
||||
tx.execute("DELETE FROM `profile` WHERE `id` = ?", [id])
|
||||
}
|
||||
|
||||
pub fn last_insert_id(tx: &Transaction) -> i64 {
|
||||
tx.last_insert_rowid()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user