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

Database file loader command #172

Closed
job opened this issue Jan 18, 2019 · 1 comment
Closed

Database file loader command #172

job opened this issue Jan 18, 2019 · 1 comment
Assignees

Comments

@job
Copy link
Member

job commented Jan 18, 2019

To refresh a database, you currently have to put the .db file in the correct location and wait for import_timer to expire. From a scripting perspective this is not entirely ideal, as its hard for the script to know whether reload was successful or not.

perhaps a helper script can be provided that takes as arguments such as name of the database, location of the currentserial and db file. This script would be expected to reload the new contents in an atomic fashion so that if there is an error anywhere in the new file, the old file is being used (and not overwritten), the script's exit code is also significant.

The problem I'm trying to avoid is that if a program of mine produces a .db file with invalid contents, I'd like to prevent loading that partially into the daemon.

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