pub fn build_table_def(
table_name: &str,
columns: &[ColumnSchema],
) -> Result<TableDefinition, McpError>Expand description
Build a hyperdb-api TableDefinition from a list of ColumnSchema.
Uses the consuming builder pattern required by TableDefinition.
§Errors
- Returns
ErrorCode::EmptyDataifcolumnsis empty. - Returns
ErrorCode::SchemaMismatchif any column’shyper_typecannot be resolved bymap_hyper_type.