Skip to content

Interface: DiscoverableTypeDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / DiscoverableTypeDto

Defined in: src/types/sources.ts:493

One discoverable type of a source, as reported by the cheap name-only listing.

Returned inside ListTablesResponse. Wire format is snake_case (estimated_rows).

optional columnCount?: number | null

Defined in: src/types/sources.ts:514

How many fields/columns the type declares.

Absent when the adapter cannot say without a per-type round-trip. Never 0 to mean “unknown” — 0 means the type declares no columns.

The twin of estimatedRows, and added for the same reason: both counts used to be readable only by parsing the free-text comment (“Data from CSV file ‘…’ with 11 rows and 6 columns”), and mapping one without the other leaves a consumer parsing that sentence for the other half.


optional comment?: string | null

Defined in: src/types/sources.ts:495

The type’s own description, when the source records one.


optional estimatedRows?: number | null

Defined in: src/types/sources.ts:500

Planner-grade row estimate. Never exact — it is what the catalog already knows, never a COUNT(*).


name: string

Defined in: src/types/sources.ts:516

Name of the type as the source knows it (table name, label, collection).