Skip to content

Store multiple database files in the same directory #1205

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

Open
1 task
z2010643575 opened this issue Apr 2, 2025 · 3 comments
Open
1 task

Store multiple database files in the same directory #1205

z2010643575 opened this issue Apr 2, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@z2010643575
Copy link

z2010643575 commented Apr 2, 2025

Is there an existing issue?

Use case

The "data.mdb" file name becomes a custom file name

Proposed solution

It is recommended to support changing the "data.mdb" file name to a custom file name

@z2010643575 z2010643575 added the enhancement New feature or request label Apr 2, 2025
@greenrobot-team
Copy link
Member

Thanks for this suggestion. Why do you want to do this?

Note that you can change the name of the folder the database files are in using the .name(yourName) method on the MyObjectBox builder.

Note: I labeled this issue with "more info required" so it will auto-close in a few days if there are no follow-up comments.

@greenrobot-team greenrobot-team added the more info required Further information is requested label Apr 7, 2025
@github-actions github-actions bot removed the more info required Further information is requested label Apr 8, 2025
@z2010643575
Copy link
Author

谢谢你的建议。为什么要这样做?

请注意,您可以使用生成器上的方法更改数据库文件所在的文件夹的名称。.name(yourName)``MyObjectBox

注意:我用“需要更多信息”标记了这个问题,这样如果没有后续评论,它会在几天内自动关闭。

Thank you, I do this to store multiple database files in the same path

@greenrobot
Copy link
Member

Thank you, I do this to store multiple database files in the same path

You can have your own directory structure to do this. Why just one path?

Anyway, we likely will not consider this. What's inside the db folder, that's "internal" business of ObjectBox and subject to change.

@greenrobot-team greenrobot-team changed the title Customize database name Store multiple database files in the same directory Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants