removed comments
This commit is contained in:
parent
cac9af75f2
commit
6dfc454372
@ -44,7 +44,6 @@ pub(crate) fn insert_task(conn: &Connection, task: TaskColumn) -> Result<i64> {
|
||||
Ok(conn.last_insert_rowid())
|
||||
}
|
||||
|
||||
// happens if we un/select task or we rename the task
|
||||
pub(crate) fn update_task(conn: &Connection, task: TaskColumn, change: ChangeType) -> Result<()> {
|
||||
let (query, params) = match change {
|
||||
ChangeType::Checked => (
|
||||
|
18
src/main.rs
18
src/main.rs
@ -17,20 +17,4 @@ fn main() -> iced::Result {
|
||||
.theme(Todo::theme)
|
||||
.window(settings)
|
||||
.run()
|
||||
}
|
||||
|
||||
/*fn main() {
|
||||
let path: &Path = Path::new("./todolist-db.db3");
|
||||
let conn = startup(path);
|
||||
let t = Task {
|
||||
checked: true,
|
||||
value: String::from("JJ"),
|
||||
};
|
||||
let c = conn.unwrap();
|
||||
let r = db::insert_task(t, &c);
|
||||
println!("{:?}", r);
|
||||
|
||||
let rr = db::get_tasks(&c);
|
||||
|
||||
let x = c.close();
|
||||
}*/
|
||||
}
|
Reference in New Issue
Block a user