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

Local DB setup #22

Open
ghost opened this issue Jun 1, 2020 · 2 comments
Open

Local DB setup #22

ghost opened this issue Jun 1, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 1, 2020

Hi,
Is there any specific format to give the DB path..?(To use Update API). I tried with empty dbpath. It's not working. After saw the code, I tried with .gz(which is in gob format). Even after that also, it shows me inconsistent db. My API key is working fine with Google webrisk api. What I'm missing..?

@abgoldberg
Copy link

I also have the same question. I would like to be able to persist the database but have not found a way to set the database. Any additional details would be much appreciated. Thanks!

@abgoldberg
Copy link

abgoldberg commented Aug 26, 2021

Actually, I think I may have solved this -- just making an empty file (touch db.gz) might work.

touch db.gz
wrserver -apiKey ... -db db.gz

There's initially an error:
webrisk: 2021/08/26 11:54:02 database.go:117: load failure: EOF

but it then appears to update the file and save data for the next run.

@arul-rulzz Can you see if this works for you, too?

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

1 participant