Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update settings editor to use sqlite3 #453

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tomlin7
Copy link
Owner

@tomlin7 tomlin7 commented Nov 3, 2024

Fixes #451

Add functionality to update config manager state and store settings using sqlite3 in the settings editor.

  • Add methods to save and load settings from sqlite3 db
  • Update add_sections method to load settings from the config manager.
  • Update Settings to use sqlite3 for configuration.
  • Update late_setup method to load settings from sqlite3.

Fixes #451

Add functionality to update config manager state and store settings using sqlite3 in the settings editor.

* **Config Manager (`src/biscuit/settings/config.py`):**
  - Add methods to save and load settings from sqlite3.
  - Update `__init__` method to initialize sqlite3 database in `datadir`.
  - Update `load_data` method to load settings from sqlite3.

* **Settings Editor (`src/biscuit/settings/editor/editor.py`):**
  - Add methods to save and load settings from sqlite3.
  - Update `add_sections` method to load settings from config manager.

* **Settings (`src/biscuit/settings/settings.py`):**
  - Update `Settings` class to use sqlite3 for configuration.
  - Update `late_setup` method to load settings from sqlite3.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/tomlin7/biscuit/issues/451?shareId=XXXX-XXXX-XXXX-XXXX).
@vyshnav-vinod
Copy link
Contributor

Hey i was just going through this PR and noticed that you are using key value in sqlite. Maybe this would be helpful? https://github.com/piskvorky/sqlitedict

@tomlin7
Copy link
Owner Author

tomlin7 commented Dec 3, 2024

@vyshnav-vinod oh that's very cool! thanks for sharing, will check when I get back to this PR <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Settings Editor
2 participants