The question is - is there any way to export the OrientDB database structure in a command style format, like:
create database <name>
create class <name>
create property <name>...
etc.
Thanks, Denis
There is a command export schema
available in orientdb console, it produces something like:
...
"schema":{
"version":54,
"classes":[
{
"name":"YourClassName",
"default-cluster-id":9,
"cluster-ids":[
9
],
"properties":[
{
"name":"f1",
"type":"STRING"
},
{
"name":"f2",
"type":"STRING"
},
{
"name":"f3",
"type":"STRING"
}
]
},
...
The output is json, so you can write a script to transform it in whatever you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With