orientechnologies / PhpOrient

PhpOrient - PHP binary client for OrientDB
Other
107 stars 13 forks source link

Is it possible to run IMPORT DATABASE command in PhpOrient? #15

Closed igasparetto closed 7 years ago

igasparetto commented 7 years ago

The connection is working correctly and I have the database selected.

$client->dbOpen('dbName');

All works until I try to run the command:

$client->command('IMPORT DATABASE /path/to/file/export.gz'); When I get this exception:

Message: com.orientechnologies.orient.core.command.OCommandExecutorNotFoundException: Cannot find a command executor for the command request: sql.IMPORT DATABASE /path/to/file/export.gz -preserveClusterIDs=true DB name="dbname"

If the command command is not correct, then what can be use instead?

Ostico commented 7 years ago

Hi @igasparetto , unfortunately, the binary protocol does not support import statement. You can use the orient console instead: http://orientdb.com/docs/2.1/Console-Command-Import.html

igasparetto commented 7 years ago

Hi @Ostico

That is a shame!

Is there any plans for developing such functionality?

Thanks

Ostico commented 7 years ago

Hi @igasparetto , sorry but this is not dependant on my driver. You should ask to the OrientDB developers.