Firebird - Query
Firebird - Query
Runs a SQL statement on a Firebird database. It supports SELECT, INSERT, UPDATE, DELETE and other standard SQL statements. The results can be iterated with Firebird: For each result or read directly from the action returns.
Options
Connection
Reference to the Firebird: Connection action that will be used to run the query.
Query to be executed
SQL statement to run on the Firebird database, for example SELECT * FROM CLIENTES WHERE ATIVO = 1.
Advanced options
Query timeout
Maximum time, in seconds, this query may run. When empty, the Default query timeout set on the Firebird: Connection applies. A value of 0 means no limit. When the limit is reached, the action fails and the connection is closed, because Firebird cannot cancel a running query; the connection's Time limits section describes what happens to the query and the connection. Optional field.
Returns
Javascript code
actions["action-id"].query // query that was executed (Text)
actions["action-id"].results // query results (Any)
actions["action-id"].resultsCount // number of records returned (Number)
Field selection
- query — query that was executed (Text)
- results — query results (Any)
- resultsCount — number of records returned (Number)
Rules and Conditions
- The Connection and Query fields are required.
resultsandresultsCountare relevant for SELECT statements.- For INSERT, UPDATE or DELETE statements,
resultsCountreturns0. - The Query timeout field is optional and its value is in seconds;
0means no limit. - When Query timeout is empty, the connection's default query timeout applies.
- When the query reaches the time limit, the connection is closed and a new connection must be opened to run other queries.