Hello,
i try to add something to my DB, but it doesnt seem to work.
This is how i tried to implement the connection execution:
if *geklickt {
print!("Hall2");
let text = ui.label(format!("{} {} wurde zur Einkaufsliste hinzugefügt.", value, label));
let conn = Connection::open("einkaufsliste.db");
match conn.execute("INSERT INTO table_name (Item, Amount, User) VALUES (?1, ?2, ?3); ", [label, &value.to_string(), &"Hallo".to_string()]) {
Ok(updated) => println!("{} rows were updated", updated),
Err(err) => println!("update failed: {}", err),
}
}```
But i get E0599 for conn.execute(). Idk what is wrong tbh, can someone help me?