Console - LOAD SCRIPT (from 2.2.18)

Loads a sql script from the given path and executes it.

Syntax

LOAD SCRIPT <script path>

Example

  • Load a script from an absolute path:

    orientdb> LOAD SCRIPT /path/to/scripts/data.osql
    
    
  • Launch the console in batch mode and load script to a remote database:

    $ $ORIENTDB_HOME/bin/console.sh "CONNECT REMOTE:localhost/demo;LOAD SCRIPT /path/to/scripts/data.osql"
    

For more information on other commands, see Console Commands.