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

Cli command to update the DPD database manually #19

Closed
gambhiro opened this issue Mar 26, 2024 · 2 comments
Closed

Cli command to update the DPD database manually #19

gambhiro opened this issue Mar 26, 2024 · 2 comments

Comments

@gambhiro
Copy link
Member

Provide a cli command to replace the current DPD in Simsapa from a dpd.db generated directly from dpd-db.

@gambhiro
Copy link
Member Author

The migrate-and-index-dpd following cli command will:

  • create a copy of the db file
  • run the db migration
  • copy the migrated db to SIMSAPA_DIR (~/.local/share/simsapa/assets/dpd.sqlite3)
  • re-generate the dictionary fulltext index for en language (which includes the DPD)
./Simsapa_Dhamma_Reader-0.5.0a1-x86_64.AppImage migrate-and-index-dpd path/to/dpd.db

Check log.txt for watching the progress:

tail -s 0.5 -f ~/.local/share/simsapa/log.txt

@bdhrs
Copy link

bdhrs commented Mar 27, 2024

great! that seems to work. it takes just over 5min on my machine .

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

No branches or pull requests

2 participants