如何使用Rest API导出Orient DB(2.2.x)模式?

时间:2018-05-18 05:45:39

标签: orientdb

我正在尝试使用Http API导出orient db(2.2.x)。

http://localhost:2480/export/demo2

的HTTP GET请求

我需要单独导出数据库模式及其中的数据。需要建议这样做。提前谢谢。

1 个答案:

答案 0 :(得分:1)

您无法使用REST api导出数据库,但是您可以通过调用此url来返回其架构(不要忘记进行身份验证):

http://<server>:<port>/query/YourDatabaseName/sql/select expand(classes) from metadata:schema

这是文档:

OrientDB | Querying the schema

OrientDB | REST API - Query