Commit 8cffeabc281ec3f7446082ba965e85bb3af49f49
1 parent
49c7a1fd
[+] add update_settings with Int value
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
database/settings.anubis
| ... | ... | @@ -94,3 +94,12 @@ public define One |
| 94 | 94 | forget(sql_query_timeout(db, "INSERT INTO settings (var_name, var_value) VALUES (@name, @value)", binds, "update_settings")) |
| 95 | 95 | . |
| 96 | 96 | |
| 97 | +public define One | |
| 98 | + update_settings | |
| 99 | + ( | |
| 100 | + Database db, | |
| 101 | + String var, | |
| 102 | + Int value | |
| 103 | + )= | |
| 104 | + update_settings(db, var, to_String(value) | |
| 105 | +. | ... | ... |