Test a database configuration and measure its response time.
When to use
Choose SQLite and use :memory: for a temporary database, or enter a full file path for a local database that is saved after changes. A connected database.profile may supply these settings but is not required.
Inputs and outputs
| Direction | Connector | Type | Required |
|---|---|---|---|
| Input | profileRef — Database profile | text | no |
| Output | reachable — Reachable | boolean | on success |
| Output | latencyMs — Latency | number | on success |
| Input/output | fire | fire | no / on success |
Settings
These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.
| ID | Setting | Control | Default | Bounds/options |
|---|---|---|---|---|
databaseProvider | Database provider | select | sqlite | options: SQLite (sqlite); Used when the corresponding output from an earlier block is not connected. |
databasePath | SQLite database path | text | :memory: | Used 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 Reachable, Latency 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.
| ID | Setting | Control | Default | Bounds/options |
|---|---|---|---|---|
databaseProvider | databaseProvider | select | sqlite | options: SQLite (sqlite) |
databasePath | databasePath | text | :memory: | — |
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
Choose SQLite and set the database path to :memory: to test a temporary database. On a successful check, reachable is true and latencyMs contains the measured duration. Use Open DB Connection when a later block needs a connection.
