Table of Contents

Data Resource - Runtime Data Resource

About

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.

Example

(create.sql@cd)@sqlite
(script.sh@cd)@tmp

Type

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

Data Uri

Default Execution

A executable is represented with the following data uri

(executablePath@executableConnection)@executionConnection

where:

Nested Execution

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 Data Selectors

Runtime resources can be selected with a executable selector.

Execution

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)

Execute Operation

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)

Attributes

Logical Name

The default logical name is the logical name of the execution resource.

Executable

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

FAQ

Does a runtime resource exists

Runtime created from Exists
A data uri the executable exists
Dynamically with a pipeline operation true