-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds console command to LOAD SCRIPT - documentation
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
search: | ||
keywords: ['console', 'command', 'load', 'record', 'LOAD SCRIPT'] | ||
--- | ||
|
||
# Console - `LOAD SCRIPT` (from 2.2.18) | ||
|
||
Loads a sql script from the given path and executes it. | ||
|
||
**Syntax** | ||
|
||
```sql | ||
LOAD SCRIPT <script path> | ||
``` | ||
|
||
**Example** | ||
|
||
- Load a script from an absolute path: | ||
|
||
<pre> | ||
orientdb> <code class="lang-sql userinput">LOAD SCRIPT /path/to/scripts/data.osql</code> | ||
|
||
</pre> | ||
|
||
|
||
- Launch the console in batch mode and load script to a remote database: | ||
|
||
<pre> | ||
$ <code class="lang-sh userinput">$ORIENTDB_HOME/bin/console.sh "CONNECT REMOTE:localhost/demo;LOAD SCRIPT /path/to/scripts/data.osql"</code> | ||
</pre> | ||
|
||
>For more information on other commands, see [Console Commands](Console-Commands.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters