Skip to content

@sqlrooms/ai / formatTableSchemaForAi

Function: formatTableSchemaForAi()

formatTableSchemaForAi(table): string

Formats a table with full column schema for AI context.

Parameters

ParameterTypeDescription
tableDataTableData table metadata to format.

Returns

string

Multi-line schema text including canonical table ID, optional row count, columns, and optional comment.