mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
remove constructions not in use
This commit is contained in:
parent
84926a4e8c
commit
a95832f5fc
1 changed files with 0 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue