Data Operation - Select (Selection)

Data Operation - Select (Selection)

About

select is a data operation that selects data Resources.

This is not the select sql statement. The select sql statement selects records while the select operation selects Data Resources.

See the following learning guide page, to known more: Learning Tabulify - Step 4 - How to select Data Resources

Arguments

The select operations has the following arguments.

Argument Default Description
data selector - It will select data resources by name
the with-dependencies option false If set to true, the dependencies will be added
strict false If set to true, the select operation will throw an error if the selection does not return any data resource

Usage

In a pipeline flow, this is a first operation (known as the supplier operation) because it supplies data resources to the others operations in the pipeline.

Example:

  • Simple selection:
flow:
  - name: 'Select data resources'
    operation: select
    args:
      data-selector: [email protected]
      with-dependency: (yes|no)
      strict: yes
  • Multiple selections:
flow:
  - name: 'Select data resources'
    operation: select
    args:
      - data-selector: [email protected]
        with-dependency: yes
        strict: yes
      - data-selector: [email protected]
        with-dependency: no
In a tabli data command, you set :

Example:

tabli data command [--not-strict] [--with-dependency] dataSelector

Note on Empty Selection

If no data resource matched the data selector, this is not considered an error. This is already the case for all sql statement (ie an update that does not match a row does not return an error)

Powered by ComboStrap