Skip to main content

Databases

SQLite nodes: connect, query and edit a local database.

8 nodes. Right-click any node in the editor to read this documentation in the app.

Database​

πŸ”’ SQLite Close​

id sqlite_close Β· Database Β· Python export: yes

Close a SQLite connection. Do this after the last statement that uses it.

Inputs

PortTypeDescription
connectionConnectionThe connection to close.

Outputs

PortTypeDescription
closedboolTrue once the connection is closed.

πŸ—„οΈ SQLite Connect​

id sqlite_connect Β· Database Β· Python export: yes

Open (or create) a SQLite database file and output the connection. Wire it into the other SQLite nodes. A relative path is relative to the project folder.

Outputs

PortTypeDescription
connectionConnectionOpen SQLite connection β€” wire into Query, Execute, Insert, …

Fields

FieldTypeDefaultChoices
Database file (relative to project, or absolute)textdata.db
Create if missingcheckboxtrue

πŸ—‘οΈ SQLite Delete Row​

id sqlite_delete_row Β· Database Β· Python export: yes

Delete the rows of a table matching a WHERE fragment (with ? placeholders). An empty WHERE deletes every row β€” check it first. Passes the connection through.

Inputs

PortTypeDescription
connectionConnectionOpen connection from SQLite Connect.
where_paramslistValues for the WHERE ? placeholders (overrides the field). Overrides the WHERE params (JSON array) field when connected.

Outputs

PortTypeDescription
connectionConnectionThe same connection, so statements can be chained.

Fields

FieldTypeDefaultChoices
Tabletext
WHERE (SQL fragment, use ? placeholders)textid = ?
WHERE params (JSON array)text[]

✏️ SQLite Execute​

id sqlite_execute Β· Database Β· Python export: yes

Run one statement that changes data or schema (CREATE / INSERT / UPDATE / DELETE) and commit it. Passes the connection through so statements can be chained in order.

Inputs

PortTypeDescription
connectionConnectionOpen connection from SQLite Connect.
paramslist | dictValues for the ? placeholders (overrides the Params field). Overrides the Params (JSON array or object) field when connected.

Outputs

PortTypeDescription
connectionConnectionThe same connection, so statements can be chained.

Fields

FieldTypeDefaultChoices
SQL (DDL / INSERT / UPDATE / DELETE)codeCREATE TABLE IF NOT EXISTS users (id INTEGER PR…
Params (JSON array or object)text[]

βž• SQLite Insert Row​

id sqlite_insert_row Β· Database Β· Python export: yes

Insert one row from a JSON object of column: value pairs. The table and column names are validated and the values are bound as parameters, so they can't inject SQL. Passes the connection through.

Inputs

PortTypeDescription
connectionConnectionOpen connection from SQLite Connect.
rowdict | strRow as an object of column: value (overrides the Row field). Overrides the Row (JSON object) field when connected.

Outputs

PortTypeDescription
connectionConnectionThe same connection, so statements can be chained.

Fields

FieldTypeDefaultChoices
Tabletext
Row (JSON object)code{"column": "value"}

πŸ” SQLite Query​

id sqlite_query Β· Database Β· Python export: yes

Run a SELECT and return the rows as a DataFrame. Use ? placeholders in the SQL and supply their values as a JSON array (or wire a list into Params) rather than pasting values into the SQL. To change data use SQLite Execute.

Inputs

PortTypeDescription
connectionConnectionOpen connection from SQLite Connect.
paramslist | dictValues for the ? placeholders (overrides the Params field). Overrides the Params (JSON array or object) field when connected.

Outputs

PortTypeDescription
resultDataFrameThe result rows, one column per selected column.

Fields

FieldTypeDefaultChoices
SQL (SELECT)codeSELECT name FROM sqlite_master WHERE type='tabl…
Params (JSON array or object)text[]

πŸ“‹ SQLite Select Table​

id sqlite_select_table Β· Database Β· Python export: yes

Read rows from one table as a DataFrame without writing SQL: choose the columns, an optional WHERE fragment with ? placeholders, and a row limit (0 = no limit).

Inputs

PortTypeDescription
connectionConnectionOpen connection from SQLite Connect.
where_paramslistValues for the WHERE ? placeholders (overrides the field). Overrides the WHERE params (JSON array) field when connected.

Outputs

PortTypeDescription
resultDataFrameThe selected rows.

Fields

FieldTypeDefaultChoices
Tabletext
Columns (comma-separated, or *)text*
WHERE (SQL fragment, use ? placeholders)text
WHERE params (JSON array)text[]
Limitint100

πŸ“ SQLite Update Row​

id sqlite_update_row Β· Database Β· Python export: yes

Update rows of a table: SET a JSON object of column: value pairs WHERE a SQL fragment matches (with ? placeholders for the WHERE values). Names are validated and values bound as parameters. Passes the connection through.

Inputs

PortTypeDescription
connectionConnectionOpen connection from SQLite Connect.
setdict | strColumns to set, as an object (overrides the SET field). Overrides the SET (JSON object) field when connected.
where_paramslistValues for the WHERE ? placeholders (overrides the field). Overrides the WHERE params (JSON array) field when connected.

Outputs

PortTypeDescription
connectionConnectionThe same connection, so statements can be chained.

Fields

FieldTypeDefaultChoices
Tabletext
SET (JSON object)code{"column": "value"}
WHERE (SQL fragment, use ? placeholders)textid = ?
WHERE params (JSON array)text[]