Orientdb 在工作室中打开 plocal 数据库

Orientdb open plocal database in studio

我怎样才能在 spring 引导服务器中以嵌入式模式使用 orientdb 运行 并使用 studio 与数据库交互并执行临时查询 在应用程序生成的数据中。

您有两种使用嵌入式数据库的方法:

  1. 直接从物理路径打开,使用ODatabaseDocumentTx

    new ODatabaseDocumentTx("plocal:/the/path/to/the/db")

这只会打开数据库,没有额外的服务

  1. 在您的应用程序中启动一个完整的 OrientDB 服务器,请参阅 http://orientdb.com/docs/2.2.x/Embedded-Server.html for v 2.2

第二个选项还将启动 HTTP 服务器并公开 Studio