SQLite Forum

How to save and load configuration files
Login

How to save and load configuration files

(1) By user1 (Vishnu) on 2021-05-10 07:21:23 [link] [source]

I need save and load my software configuration files using sqlite database

(2) By Kees Nuyt (knu) on 2021-05-10 22:15:35 in reply to 1 [source]

In the simplest form, you can save and extract files into / out of an SQLite archive from your application or using the SQLite command line shell.

But perhaps a fossil repository with version control is more suitable for your use case.

By the way, if you clone the repository of the fossil software itself, you can see how it stores its own configuration in a "key/value" store:

fossil sql -R /path/to/fossil.fossil "SELECT * FROM Config" | less

For more concrete answers, you will have to pose more concrete questions.