use of com.orientechnologies.orient.core.db.tool.ODatabaseExport in project orientdb by orientechnologies.
the class DbImportExportTest method testDbExport.
@Test
public void testDbExport() throws IOException {
ODatabaseDocumentTx database = new ODatabaseDocumentTx(url);
database.open("admin", "admin");
// ADD A CUSTOM TO THE CLASS
database.command(new OCommandSQL("alter class V custom onBeforeCreate=onBeforeCreateItem")).execute();
ODatabaseExport export = new ODatabaseExport(database, testPath + "/" + exportFilePath, this);
export.exportDatabase();
export.close();
database.close();
}
Aggregations