Skip to content

Interface: BulkBindSortsRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / OntologyBridge / BulkBindSortsRequest

Interface: BulkBindSortsRequest

Defined in: src/types/ontology-bridge.ts:83

Request to bind many sorts to SQL tables in one call.

Remarks

Sent to POST /api/v1/ontology/bindings/bulk. Best-effort and non-transactional (it mirrors POST /api/v1/sorts/bulk): each binding is attempted independently against a single hierarchy snapshot, and a failure is recorded per-item in BulkBindSortsResponse.errors rather than aborting the batch. Each entry is the same shape as a single BindSortRequest, so the wire format is snake_case (sort_name, table_name, source_id, key_columns, sql_type).

Example

const request: BulkBindSortsRequest = {
bindings: [
{
sortName: 'person',
tableName: 'people',
sourceId: 'warehouse',
keyColumns: ['id'],
columns: [{ feature: 'name', column: 'full_name' }],
},
],
};

Properties

bindings

bindings: BindSortRequest[]

Defined in: src/types/ontology-bridge.ts:85

Bindings to apply, in order.