scope
scope accessor
Type: Accessor
Present the content of a scope variable as a file.
Similar to the data accessor, this makes a string appears as the
file contents. However, instead of the filename itself containing
the file content, the filename refers to the name of a variable in
the current scope that contains the data.
This is useful when the binary data is not unicode safe and can
not be properly represented by JSON. Sometimes the filename is
echoed in various log messages and with the data accessor this
will echo some binary data into the logs.
Example
LET MyData <= "This is a test string"
SELECT read_file(accessor="scope", filename="MyData") FROM scope()
Platforms: macOS, Linux, Windows
scope function
Type: Function · Category: popular
return the scope.
Platforms: macOS, Linux, Windows
scope plugin
Type: Plugin · Category: popular
The scope plugin returns the current scope as a single row.
The main use for this plugin is as a NOOP plugin in those cases we don’t want to actually run anything.
Example
SELECT 1+1 As Two FROM scope()
Platforms: macOS, Linux, Windows