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
| Port | Type | Description |
|---|---|---|
connection | Connection | The connection to close. |
Outputs
| Port | Type | Description |
|---|---|---|
closed | bool | True 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
| Port | Type | Description |
|---|---|---|
connection | Connection | Open SQLite connection β wire into Query, Execute, Insert, β¦ |
Fields
| Field | Type | Default | Choices |
|---|---|---|---|
| Database file (relative to project, or absolute) | text | data.db | |
| Create if missing | checkbox | true |
ποΈ 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
| Port | Type | Description |
|---|---|---|
connection | Connection | Open connection from SQLite Connect. |
where_params | list | Values for the WHERE ? placeholders (overrides the field). Overrides the WHERE params (JSON array) field when connected. |
Outputs
| Port | Type | Description |
|---|---|---|
connection | Connection | The same connection, so statements can be chained. |
Fields
| Field | Type | Default | Choices |
|---|---|---|---|
| Table | text | ||
| WHERE (SQL fragment, use ? placeholders) | text | id = ? | |
| 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
| Port | Type | Description |
|---|---|---|
connection | Connection | Open connection from SQLite Connect. |
params | list | dict | Values for the ? placeholders (overrides the Params field). Overrides the Params (JSON array or object) field when connected. |
Outputs
| Port | Type | Description |
|---|---|---|
connection | Connection | The same connection, so statements can be chained. |
Fields
| Field | Type | Default | Choices |
|---|---|---|---|
| SQL (DDL / INSERT / UPDATE / DELETE) | code | CREATE 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
| Port | Type | Description |
|---|---|---|
connection | Connection | Open connection from SQLite Connect. |
row | dict | str | Row as an object of column: value (overrides the Row field). Overrides the Row (JSON object) field when connected. |
Outputs
| Port | Type | Description |
|---|---|---|
connection | Connection | The same connection, so statements can be chained. |
Fields
| Field | Type | Default | Choices |
|---|---|---|---|
| Table | text | ||
| Row (JSON object) | code | {"column": "value"} |