You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, they are objectbox databases which in the objectbox directory. I find that they store in android application's files path. It includes data.mdb and lock.mdb.
I find that they store in android application's files path. It includes data.mdb and lock.mdb.
@BeneficialCode There is no guarantee this works (due to differences in, for example, how numbers are stored), but you can open the database created by another ObjectBox library if you make sure your Python code uses the exact same model. You can verify this by checking if the generated model JSON is the same.
Side note: for anyone just looking to view the contents of an ObjectBox database file, use the Admin app.
I find that they store in android application's files path. It includes data.mdb and lock.mdb.
@BeneficialCode There is no guarantee this works (due to differences in, for example, how numbers are stored), but you can open the database created by another ObjectBox library if you make sure your Python code uses the exact same model. You can verify this, if the generated model JSON is the same.
Side note: for anyone just looking to view the contents of an ObjectBox database file, use the Admin app.
Can I use python to generate a database file (data.mdb) and then open it on Android?
Activity
greenrobot commentedon May 6, 2024
This? https://docs.objectbox.io/data-browser
BeneficialCode commentedon May 6, 2024
I mean coding.
greenrobot commentedon May 6, 2024
Basically you need to go through here: https://github.com/objectbox/objectbox-python?tab=readme-ov-file#getting-started
But, where does the data.mbd come from? Microsoft Access also uses this .mdp file extension, but it has nothing to do with it.
BeneficialCode commentedon May 6, 2024
Actually, they are objectbox databases which in the objectbox directory. I find that they store in android application's files path. It includes data.mdb and lock.mdb.
dh123321 commentedon Nov 13, 2024
bro,i have a same question,do you solve it?
BeneficialCode commentedon Nov 14, 2024
Not yet : (
greenrobot-team commentedon Nov 18, 2024
@BeneficialCode There is no guarantee this works (due to differences in, for example, how numbers are stored), but you can open the database created by another ObjectBox library if you make sure your Python code uses the exact same model. You can verify this by checking if the generated model JSON is the same.
Side note: for anyone just looking to view the contents of an ObjectBox database file, use the Admin app.
dh123321 commentedon Nov 19, 2024
Can I use python to generate a database file (data.mdb) and then open it on Android?
greenrobot commentedon Nov 19, 2024
Yes, that should work.
feat: add open-existing-db example to address issue objectbox#20