Easily find issues by searching: #<Issue ID>
Example: #1832
Easily find members by searching in: <username>, <first name> and <last name>.
Example: Search smith, will return results smith and adamsmith
Aqua Data Studio / nhilam |
Follow
827
|
\source | |
Executes script from a file. | |
Syntax | |
\source [OPTIONS] FILENAME [ARGS] |
|
Description | |
This command executes script from a file. In case of SQL scripts, the contents of the specified file are imported into the SQL buffer. When the source command encounters statement separators [ GO, go, /, @] it sends the contents of the buffer to the database and executes the accumulated commands. The source command executes an aquascript file (.xjs) within the project. For example, to execute a script named foo.xjs under the project demo which is in /home/tariq/demo, you need to change directory to /home/tariq/demo/AquaScripts and then use the command \source foo.xjs It is possible to pass command line arguments to an AquaScript (but not to a SQL script). In AquaScript, the command line arguments are passed via javascript array in an "argument" variable in the global context. |
|
Options | |
-SS BOOLEAN stop on any error ocurred in an SQL statement (default: true). |
|
-cs BOOLEAN stop on any error ocurred in a FluidShell command (default: false). |
|
-e BOOLEAN echo FluidShell commands (default: true). |
|
Examples | |
To execute a SQL script: \source sample.sql |
|
To execute an AquaScript: \source aquascript.xjs |
|
You can also specify arguments in the source command \source aquascript.xjs ARG1 ARG2 |
|
To retrieve passed command line arguments in AquaScript: print(argument); if(argument != null) { print(argument[0]); print(argument[1]); print(argument[2]); } |
About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017