Skip to content

Allow setting store options #12

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

Closed
nalenz-objectbox opened this issue Sep 4, 2019 · 3 comments
Closed

Allow setting store options #12

nalenz-objectbox opened this issue Sep 4, 2019 · 3 comments
Labels
help wanted Looking for contributors (ideas, comments, code, etc)

Comments

@nalenz-objectbox
Copy link
Contributor

Using obx_opt_* functions, properties like the store path, database filename etc. can be set. See here for the list of possible options.

Use a Store constructor with named arguments to easily specify any non-default options.

@greenrobot
Copy link
Member

Should we have a StoreBuilder class for that? Are builders common in Dart?

@nalenz-objectbox
Copy link
Contributor Author

I wouldn't go for a separate builder class. Doing something like new Store(model, directory: "mydir", maxDBSizeInKB: 524288) is quite intuitive already I think.

@greenrobot
Copy link
Member

"Named optional parameters"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Looking for contributors (ideas, comments, code, etc)
Projects
None yet
Development

No branches or pull requests

2 participants