+1, I'm interested too. One workaround is to launch the 2 commands separately (if the first fail, the second will be executed). console.sh "drop database remote:localhost/testgraphdb1 root xyz" && console.sh "create database remote:localhost/testgraphdb1 root xyz local graph;"
On Thursday, February 13, 2014 9:27:28 AM UTC+1, Ameer Tamboli wrote: > > I want to write a script which will be run on OrientDB Console. The script > needs to delete the database if it exists and create new one. > > I am using following commands: > > drop database remote:localhost/testgraphdb1 root xyz > > create database remote:localhost/testgraphdb1 root xyz local graph; > > > How can I avoid the error occurred when the command tries to drop a > database which doesn't exist. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
