You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How could an update be made of a field, whose new value is the current one + 1?
In a normal sentence it would be like this, but I don't know how to apply it to your library:
UPDATE table SET views = views + 1 WHERE id = ?
The text was updated successfully, but these errors were encountered:
No, good question, you were right, and that Database#increment method has not actually been implemented yet.
However, the thread where you probably found that method has the alternative solution as well: #13 That basic Database#exec solution works already today, and is exactly what you originally wanted, i.e. using your suggested first SQL statement with this library.
How could an update be made of a field, whose new value is the current one + 1?
In a normal sentence it would be like this, but I don't know how to apply it to your library:
UPDATE table SET views = views + 1 WHERE id = ?
The text was updated successfully, but these errors were encountered: