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

location of database? #41

Closed
persianphilosopher opened this issue Feb 7, 2018 · 1 comment
Closed

location of database? #41

persianphilosopher opened this issue Feb 7, 2018 · 1 comment

Comments

@persianphilosopher
Copy link

My apologies if this is addressed but I could not find it in the issues or the code. I am wondering if it is possible to optionally pass the location of the database in the __construct. Because I run different scripts and operations on my "notes" folder, I would like to avoid having the notes.dat be located in the same folder. Thank you greatly

@fire015
Copy link
Owner

fire015 commented Feb 8, 2018

Hi, you can pass the path to the folder you want in the constructor like so...

$notes = new Flintstone('notes', ['dir' => '/foo/blah/data']);

This would store the file in /foo/blah/data/notes.dat

@fire015 fire015 closed this as completed Feb 8, 2018
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