Skip to main content

Module type_info

Module type_info 

Source
Expand description

Column-schema introspection for the data-contract and type-checking systems.

Methods on TypeInfoClient query the Materialize system catalog for external dependencies and CREATE TABLE FROM SOURCE tables, returning their column names, types, nullability, object kinds, and comments as a Types snapshot.

Plain CREATE TABLE objects are excluded โ€” their schemas are derived from the SQL AST during type checking and do not need server queries.

  • lock uses query_types_for_objects to generate types.lock for declared dependencies and source tables, retrieving column types, object kind, and comments from the catalog in a single query per object.
  • query_external_types delegates to query_types_for_objects, extracting object lists from the compiled project graph.

Structsยง

CatalogColumnInfo ๐Ÿ”’
CatalogObjectInfo ๐Ÿ”’
Per-object payload returned by the catalog query in query_types_for_objects.