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

Use SQLite for persistent state #2884

Closed
wants to merge 1 commit into from
Closed

Conversation

twpayne
Copy link
Owner

@twpayne twpayne commented Mar 24, 2023

This is a draft PR. Rough objectives:

  • SQLite is more common than BoltDB, so we should use the more standard DB if possible.
  • SQLIte, thanks to modernc.org/sqlite, is potentially more portable than BoltDB, and so should help chezmoi run on more platforms (e.g. AIX, build for AIX #2787).
  • SQLite supports in-memory databases, so we can replace MockPersistentState with an in-memory SQLite database.

Work in progress...

@twpayne twpayne force-pushed the sqlite-persistent-state branch 2 times, most recently from a60e082 to 367f884 Compare April 7, 2023 14:40
@twpayne twpayne added work in progress Work in progress do not merge Do not merge labels Apr 7, 2023
@twpayne
Copy link
Owner Author

twpayne commented Jul 6, 2023

Closing this as WONTFIX because, in practice, modernc.org/sqlite doesn't support as many platforms as BoltDB.

@twpayne twpayne closed this Jul 6, 2023
@twpayne twpayne deleted the sqlite-persistent-state branch September 10, 2023 19:39
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
do not merge Do not merge work in progress Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant