objectbox/objectbox-python

Is there a way to open an existed data.mdb ?

BeneficialCode opened this issue · 9 comments

I mean a python example to open a database.

I mean coding.

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.

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.

bro,i have a same question,do you solve it?

Not yet : (

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?

Can I use python to generate a database file (data.mdb) and then open it on Android?

Yes, that should work.