Orientdb: Question: A way to export only the schema/indices and not the data but be able to import it normally too?

Created on 16 Jul 2015  路  4Comments  路  Source: orientechnologies/orientdb

It would be nice if I was able to extract the schema of my database plus indices without the data. Is this currently possible? I found this: http://stackoverflow.com/questions/18258272/exporting-the-orientdb-database-structure-in-a-command-style-format but I would prefer to be able to use the result through normal import/export.

Thanks

question

Most helpful comment

have you already tried export command with these options:

-excludeAll exclude everything. This is useful to export only few things. Instead of exclude all the feature it's much easier exclude all, and include what you're interested. Example: "-excludeAll -includeSchema=true" to export the schema only. Available since v1.7.
-includeSchema includes or not the database's schema
-includeIndexDefinitions includes or not database's index definition

All 4 comments

@zifnab87 the output should be compatible with import command. Have you tried it?

well the output also contains data - I would like to be able to extract just the schema and indices.. output definitely is compatible with import already.

in other words a flag during export nodata to skip loading records, or instead of export database a command like export schema

have you already tried export command with these options:

-excludeAll exclude everything. This is useful to export only few things. Instead of exclude all the feature it's much easier exclude all, and include what you're interested. Example: "-excludeAll -includeSchema=true" to export the schema only. Available since v1.7.
-includeSchema includes or not the database's schema
-includeIndexDefinitions includes or not database's index definition

@nagarajasr thanks! That is what I was searching for! closing

Was this page helpful?
0 / 5 - 0 ratings