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

Ability to specify database location #171

Closed
mraxilus opened this issue Jul 12, 2017 · 7 comments
Closed

Ability to specify database location #171

mraxilus opened this issue Jul 12, 2017 · 7 comments

Comments

@mraxilus
Copy link

mraxilus commented Jul 12, 2017

It would be nice if I were able to specify the location of the database file to use, as I like to separate my work bookmarks from my personal ones.

Perhaps even a flag such as --database which would allow you to specify which database the command should deal with.

@jarun
Copy link
Owner

jarun commented Jul 12, 2017

Why not use a tag, say... professional? If you ever need you can export specific tags too.

Coming to the option of specifying the DB location:
Switching databases is prone to human errors. Buku is written as a library. If you really want it you can do it at an API level. Check the classes:

class BukuDb
class BukuCrypt

I would like to keep Buku simple for the regular users.

@jarun jarun closed this as completed Jul 12, 2017
@jarun jarun mentioned this issue Jul 16, 2017
37 tasks
@jarun
Copy link
Owner

jarun commented Jul 16, 2017

I am re-opening this as I see more requests for this feature. You'll have it soon. :)

@jarun jarun reopened this Jul 16, 2017
@jarun
Copy link
Owner

jarun commented Jul 16, 2017

I am adding an undocumented API --db which should meet your requirement.

@jarun jarun closed this as completed in d203776 Jul 16, 2017
@dmarcoux
Copy link

dmarcoux commented May 8, 2018

Is there a reason to not document the --db flag?

@jarun
Copy link
Owner

jarun commented May 8, 2018

Yes, we would like to keep it hidden from regular users. There's a high chance of mixing up if someone tries to use both.

@ChristopherA
Copy link

I like to use Boku with Tails OS, however, though I can now make the app be persistently installed using their new persistent apps feature, the DB file is saved by default to /home/amnesia/.local/buku/bookmarks.db when I want it saved to /home/amnesia/Persistent/.local/buku/bookmarks.db so that the database is persistent as well.

I can't recompile Boku to make this change — I have to use the scripted apt-get that Tails OS uses to make persistent apps function.

@jarun
Copy link
Owner

jarun commented Nov 27, 2018

What's Boku?

You can use the --db flag. It's available but not documented.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants