Add sticker sub-commands inc and dec

Let sqlite do the work for incrementing or decrementing a sticker value.
This sub-commands are usefull to track playcounts with sticker values and
saves us one roundtrip.
This commit is contained in:
jcorporation
2024-12-11 21:41:20 +01:00
parent 78e643150f
commit 1078c1c1bf
7 changed files with 159 additions and 0 deletions

View File

@@ -1518,6 +1518,20 @@ the database for songs).
sticker item with that name already exists, it is
replaced.
.. _command_sticker_inc:
:command:`sticker inc {TYPE} {URI} {NAME} {VALUE}`
Adds a sticker value to the specified object. If a
sticker item with that name already exists, it is
incremented by supplied value.
.. _command_sticker_dec:
:command:`sticker dec {TYPE} {URI} {NAME} {VALUE}`
Adds a sticker value to the specified object. If a
sticker item with that name already exists, it is
decremented by supplied value.
.. _command_sticker_delete:
:command:`sticker delete {TYPE} {URI} [NAME]`