Add notes on SQLite backend

This commit is contained in:
contrapunctus 2022-03-21 09:27:25 +05:30
parent e6c8ed785d
commit a8a51accbf
1 changed files with 2 additions and 0 deletions

View File

@ -808,6 +808,8 @@ See docstring of =timeclock-log-data=
:CUSTOM_ID: new-backends-klog
:END:
** SQLite
Chronometrist allows the user to add arbitrary key-values. There are a few ways to do this in SQL, but [[https://mariadb.com/kb/en/entity-attribute-value-implementation/][this solution]] seems well-suited to Chronometrist - put commonly-queried keys (name, start, stop) into SQL columns, and put user key-values in a JSON/s-exp TEXT column. The latter can be queried separately. SQLite has support for [[https://www.sqlite.org/json1.html][JSON columns]].
** Project Hamster
https://github.com/projecthamster/hamster
+ https://github.com/projecthamster/hamster/wiki/Our-datamodel