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
Keyfile Path only in root directory #25
Comments
Hi @schmurian Thank you for pointing this out! This is indeed an issue, as the arguments can't be skipped, and hence this is a mistake in the Elara documentation! I'd suggest trying something like this : import elara
db = elara.exe_secure(path="path/new.db", key_path="path/edb.key")
db.set("num", 20)
print(db.get("num")) This should solve the issue for you. By default
db = elara.exe_secure(path="path/new.db", commitdb=True, key_path="path/edb.key") OR
db = elara.exe_secure("path/new.db", True, "path/edb.key") I intend to extend Elara further and add more extensions/arguments hence I suggest you go with Hope this helps :). I will update the documentation with the same very soon. Thanks again for pointing this out! |
Ah, yes! Thank you! That does the trick. |
Cheers! |
Hi,
I've tried to create a new database in secure mode and wanted to move both files into a subdirectory
db = elara.exe_secure("path/new.db", "path/newdb.key")
While the db file was created in the subdirectory, the keyfile wasn't accepted as argument which resulted in 'edb.key' being created in the root directory.
It would be great if this could be fixed. (If this is on purpose, please share the reasons for this decision. Curious!)
Thank you for this great app!
The text was updated successfully, but these errors were encountered: