Inspect SQLite Columns

databases · N070 · starter-package 7.0.1

Read declared column types, defaults and primary key positions for a table or view.

Connect a name from List SQLite Relations to Table. Each record contains position (zero-based), name, declaredType, required, defaultSql, primaryKeyOrdinal and SQLite’s hidden flag. required reflects the explicit NOT NULL declaration.

Wiring

Connect the result of Open DB Connection or Begin Transaction to connectionRef. Use the same connection for every block that needs to see this database. Opening a second in-memory connection creates a separate database. Supply the name of a table or view in the main schema using table. A connected text value takes precedence over the saved name.

Outputs — columns (list). Connect the list to For Each to process individual records or to Records to Table for tabular use. Fire signals that inspection completed.

Execution

This operation reads the database as seen by the connected run, including changes visible to an active transaction. A missing table or unusable connection produces an error at this block. Run Open DB Connection again if the connection has closed.

Exact settings reference

These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.

IDSettingControlDefaultBounds/options
tableTable or viewtextEmpty text—

Connector data types

The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.

DirectionConnectorTypeRequired
InputconnectionRef — Database connectiontextyes
Inputtable — Table or viewtextno
Outputcolumns — Columnsliston success
Inputfire — Firefireno
Outputfire — Firefireon success