A runtime data resource is a special type of data resource that represents:
They are called runtime data resources because these data resources are created at and by the execution.
(create.sql@cd)@sqlite
(script.sh@cd)@tmp
| Execution Locality | Description | List |
|---|---|---|
| Remote request | Request/Response to a service | SQL Request - database request HTTP request - web server request |
| Local | Operating System Command | Script command - Textual computer language file Binary command - Language Interpreter, Compiled Machine code instructions |
A executable is represented with the following data uri
(executablePath@executableConnection)@executionConnection
where:
We even support deep nested execution resource when the execution of an executable returns a another executable.
((executableResourcePath@executionResourceConnection)@executionResourceConnection)@executionConnection
For instance:
((archive/world-sql--archive-entry.yml@howto)@tmp)@mysql
((select_statement.sql@cd)@sqlite)@postgres
Runtime resources can be selected with a executable selector.
runtime resources are automatically executed at access/runtime.
For instance:
Every operation will execute them when accessing them
ie:
Example of execution:
tabul data print '(select.sql@cd)@sqlite'
# The quotes are mandatory in bash because parenthesis are a bash token (ie subshell)
tabul data copy '(create_dml.sql@cd)@sqlite' result.log@tmp
# The quotes are mandatory in bash because parenthesis are a bash token (ie subshell)
With the execute operation, you can perform execution in batch and get back the exit status.
Example: To execute:
you would execute this tabul data execute command
tabul data execute '(query*.sql@cd)@sqlite'
# The quotes are mandatory in bash because parenthesis are a bash token (ie subshell)
The default logical name is the logical name of the execution resource.
The executable is the file found in the first part of the runtime data uri.
For instance, in this runtime data uri
(query.sql@cd)@sqlite
the executable is: query.sql@cd
query.sql@cd defines:
as executable
| Runtime created from | Exists |
|---|---|
| A data uri | the executable exists |
| Dynamically with a pipeline operation | true |