-
Notifications
You must be signed in to change notification settings - Fork 18
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
Lolcate local vs global databases #18
Comments
The expected syntax is |
I was messing around with I want my database to eventually be built globally, but don't have I guess I'd suggest having a I think there's an issue floating around for splitting the config files out from the database directory, but I forget the status of that. I'd really like that: IMHO the config files should be in |
The configuration files are kept separated from the database files:
|
One big design goal for Lolcate was to make it straightforward for regular users to create and query their own databases. lolcate <query> to be always valid no matter what, because it's the simplest possible one. Now, consider the following situation: there's both a global database named 'default' and another one, also named 'default' but belonging to user |
Priority order should probably be |
So if I understand correctly, when user lolcate <query> his own "default" database would be queried because of the priority order, is that what you mean ? In this case, what could be the correct syntax for him to query the system "default" database ? lolcate --db-path /var/spool <query> doesn't look fine to me |
Yes ( |
BTW, I'm not really sure which of |
Do the lookups on a per-db-name level. So if the user says |
You might want |
Mlocate stores its data in |
I'd find it too complicated if regular users had to type lolcate --db-path /var/lib/lolcate to query the default system database. Here's my proposal.
Would you be fine with that ? |
Also shall we rename this thread as e.g. "Ability to use Lolcate globally" ? |
I'm having a hard time imagining the case where a regular user would need to use |
Trying to create or update the
lolcate
database withlolcate --db ./example --create
orlolcate --db ./example --locate
gives an error.For
--create
I getUsing the absolute path `
pwd
`/example
works fine.For
--update
I getAgain, using an absolute path works fine.
Built from current master commit f876603, Debian Linux
The text was updated successfully, but these errors were encountered: