Skip to main content

Module inspector

Module inspector 

Source
Expand description

SQLite database inspection and paginated table reads.

Structs§

InitialInspection
Initial inspection payload used when opening a database in the UI.

Functions§

compare_sql_values
Compares two SQLite values using a stable ordering compatible with diff merging.
compare_value_slices
Compares two value slices using SQLite-like type ordering.
for_each_row
Iterates all rows from a table, invoking a callback for each row without materializing the full result set. This is the bounded-memory alternative to load_all_rows.
identity_columns
Returns the best-effort identifier columns for diffing a table.
inspect_database
Reads database schema information, table counts, and view definitions.
inspect_database_with_page
Reads the schema summary plus the initial visible table page for a database.
load_all_rows
Loads all rows from a table in column order.
open_read_only
Opens a SQLite connection in read-only mode.
quote_identifier
Quotes a SQLite identifier.
read_table_page
Reads a page of table rows with optional sorting.
read_table_page_for_table
Reads a page of table rows using a preloaded table definition.
read_value_row
Converts a SQLite row reference into Patchworks values.
sql_value_from_ref
Converts a raw SQLite value into a Patchworks value.