mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
add nullable value support, change field datatype
This commit is contained in:
parent
6a4790c92b
commit
a2643d953d
3 changed files with 11 additions and 4 deletions
|
|
@ -93,10 +93,16 @@ impl Widget {
|
|||
transaction: &Transaction,
|
||||
app_browser_window_tab_item_id: &i64,
|
||||
) -> Result<(), String> {
|
||||
// Keep value in memory until operation complete
|
||||
let title = self.gobject.title();
|
||||
|
||||
match Database::add(
|
||||
transaction,
|
||||
app_browser_window_tab_item_id,
|
||||
Some(&self.gobject.title().to_string()),
|
||||
match title.is_empty() {
|
||||
true => None,
|
||||
false => Some(title.as_str()),
|
||||
},
|
||||
) {
|
||||
Ok(_) => {
|
||||
// let id = Database::last_insert_id(transaction);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue