Free resources for correct update behaviour (for developers only)

AnkiWeb addon 1873344186

Demonstrates for developers how add-ons locking files like SQLite databases should release them on deletion or update, allowing multi-threaded database access; includes previous solution attempt and __init__.py explanation.
AI-generated summary; may contain mistakes.

backup-maintenancedeveloper-tools

Open on AnkiWeb Ask about alternatives

AnkiWeb

Rating
0 (๐Ÿ‘ 0 ยท ๐Ÿ‘Ž 0)
Updated
2020-03-23
Anki versions
2.1.20~
Description language
en

Maintenance

abandoned

  • Last update or commit was 2383 days before the snapshot (2020-03-23).

GitHub

No GitHub repository linked.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.20+2020-03-23
History across monthly snapshots

Loadingโ€ฆ

Similar addons

Minimalistic Typing Panel

Adds a customizable floating typing scratchpad to Anki for writing answers, notes, and calculations during review, with shortcuts, transparency, auto-clearing, and position controls.

review-flowshortcutsappearancequiz

Rating 1 ๐Ÿ‘ 1 ยท ๐Ÿ‘Ž 0 โญ 0 Anki 25.07.1~ Updated 2026-09-07
Progress Bar

Displays a customizable progress bar during review sessions, tracking passed cards and resetting unless completed.

progress-trackingfork-or-reupload

Rating 201 ๐Ÿ‘ 130 ยท ๐Ÿ‘Ž 71 โญ 183 Anki <=2.1.26 Updated 2017-08-29

Description

This addon is an example for developers, whose addons lock files in the addon folder (e.g. an sqlite database). These files need to be removed before the addon is deleted / updated. Especially updating caused some tricky-to-fix bugs, but In the end it turned out to be super simple: Allow access to the db from multiple threads (I wasn't aware that this was possible) and release it, whenever an addon is deleted. The addon contains my previous solution attempt, maybe it's helpful for others in the future. If you want to experiment with this addon, install it and then lower its mod number (in meta.json). This causes Anki to update. I added an explanation to __init__py.