Odb file version

#1

Hi,

Do we have any mechanism to knwo whether the odb file belongs to 1.x object db or 2.x object db. Before migrating all the odb files from objectdb 1.x to 2.x, i would like to add a check if it is already migrated.

Any API which is exposed to check the odb files version ?

#2

There is no such API, but you can use a try-catch block. i.e. you can write code that tries opening the database file with ObjectDB 2.x and if it fails runs the conversion.

ObjectDB Support

Reply