Station AcademyActivity referenceRPAi StationConsultingAurora Academy
Academy/Station Academy/Level 4/Working with SQLite
Level 4 · Working with data

Working with SQLite

Create a local SQLite database file, insert rows safely with parameters and read them back as a table.

Advanced≈ 18 min (estimate)Windows, macOSWorkflow engine-tested
Before this lesson
Working with JSON
You will learn to
  • Run SQL with Database Query
  • Use execute and query modes
  • Pass values with parameters instead of building SQL from text
Sample files
sqlite-notes.station.json

Database Query works with SQLite database files: a whole database in one file on your computer. Other database servers are not supported.

Fields

  • Mode: execute for statements that change data (CREATE, INSERT, UPDATE, DELETE); query for SELECT, which returns a DataTable.
  • Connection String: the path to the database file. It is created if it does not exist.
  • Query: the SQL.
  • Parameters (JSON): values for named parameters, for example {"title": "Buy paper", "done": 0} used as @title and @done in the SQL.
  • Save To Variable: the result of a query.

Always use parameters

Do not build SQL by pasting variables into the text (... VALUES ('{{title}}')). A quote in the value breaks the statement, and untrusted text can change what the SQL does. Parameters keep data and SQL apart.

The sample

sqlite-notes.station.json creates academy.db in the practice folder, adds two notes with parameters and reads the open one.

Activities in this lesson

Database Query · Log

Saved only in this browser.

Workflow engine-tested. The sample workflow was executed with the macOS Station engine (StationCore) without the user interface. UI steps are source-verified. Written against RPAi Station for macOS 0.1.0 (1) (RPAi_Station_2.0 @ port/macos 9864e96) and the Windows source (RPAi_Station_2.0 @ codex/native-station e68f16d). Reviewed 2026-11-30. UI labels may differ slightly in other versions; see versions and changes.