Add 'settings'

Anna Schumaker 2023-02-21 10:15:49 -05:00
parent 5bb91e9d64
commit 81aa8fc075
1 changed files with 10 additions and 0 deletions

10
settings.md Normal file

@ -0,0 +1,10 @@
The `settings` table holds the user configuration data so things like window and sidebar sizes can be restored during application startup. Settings values are stored as text, and converted to and from their corresponding data type by the application.
### Columns
| Name | Type | Description |
| ----- | ---- | ----------------------------------- |
| key | TEXT | The unique key for a single setting |
| type | TEXT | The data type of this value |
| value | TEXT | The user configured value |
The currently supported values for the `type` column are: "gint", "gdouble", "gboolean", or "gchararray". This is implemented through a [SQLite CHECK constraint](https://www.sqlite.org/lang_createtable.html#check_constraints)