Select Rows

databases · A253 · starter-package 7.0.1

Select named columns from a table using structured filtering and ordering.

When to use

The block performs the database action on this computer. Connection, transaction, table, and result outputs are valid only in the current workflow run and must come directly from a successful earlier database block.

Inputs and outputs

DirectionConnectorTypeRequired
InputconnectionRef — Database connectiontextyes
InputtableRef — Table referencetextno
Inputfilter — Structured filter ASTrecordno
Inputcolumns — Unique identifier columnslistno
Inputorder — Structured orderinglistno
Inputlimit — Maximum rowsnumberno
Outputrows — Rowsliston success
OutputrowCount — Row countnumberon success
Input/outputfirefireno / on success

Settings

These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.

IDSettingControlDefaultBounds/options
limitMaximum rowsnumber1000Used when the corresponding output from an earlier block is not connected.
tableNameExisting table nametextEmpty textUsed when the corresponding output from an earlier block is not connected.

Execution and required components

Database & Query runs on this computer. Before a workflow starts, Nodestly checks it and its selected child workflows for the SQL.js component. If it is missing, one popup lists it by its friendly name. Install and start prepares it after your consent; Cancel installs nothing. Once it is ready, the popup does not appear again.

After valid input, the block performs the database action. Fire and Rows, Row count appear only when every output value is valid.

Exact settings reference

These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.

IDSettingControlDefaultBounds/options
limitMaximum rowsnumber1000—
tableNametableNametextEmpty text—

Errors and recovery

  • Missing or invalid input stops before the database is changed and identifies the affected field.
  • If connected output is expired, changed, or belongs to another workflow run, reconnect it from the block that creates it.
  • SQLite errors, such as a missing table or column, are shown on this block with the concrete reason and no partial output.
  • An invalid database path or missing write permission asks you to correct the path or file permissions.
  • If SQL.js is still missing after workflow preparation, update Nodestly and Database & Query, restart the app, and run the same saved workflow again. Report the highlighted block as a product defect if this continues.

Example workflow

Connect the open database and its table, select columns ["id","status"] and filter with {"column":"status","operator":"eq","value":"active"}. A matching row with ID 7 appears in rows as {"id":7,"status":"active"}.