LIB RUN

Core command LI RU LIRU

Runs a Script stored in the Scripts Library, the same way @ does. The name is a path relative to the library root, exactly as written: LIB RUN maintenance/foo.bsql runs maintenance/foo.bsql. No extension is added and the path cannot leave the library.

Arguments

<script> (mandatory) a path relative to the Scripts Library, then optional parameters

Examples

LIB RUN maintenance/cleanup.bsql
LIB RUN "folder/my script.bsql" value1 "value 2"

Notes

Runs a Script from the Scripts Library: LIB RUN <script> [parameter ...].

script is a path relative to the Scripts Library root, taken exactly as written: LIB RUN foo.bsql runs <ScriptsLibrary>/foo.bsql, LIB RUN maintenance/foo.bsql runs <ScriptsLibrary>/maintenance/foo.bsql. No extension is added, no alias or file-name search is done, and the path cannot leave the library (use @<path> for a Script located elsewhere). Execution, parameters (%1 to %9) and errors are those of @: both go through the same ScriptResolver and ScriptExecutor; only the reference form differs.

Last modified in release 5.2.10.