@cbnsndwch/zero-sources

groupTablesBySource() function

Home > @cbnsndwch/zero-contracts > groupTablesBySource

groupTablesBySource() function

Group discriminated tables by their source collection Useful for change source routing and optimization

Signature:

declare function groupTablesBySource<
    const TTables extends readonly TableBuilderWithColumns<TableSchema>[]
>(
    schema: TypedSchema<TTables>,
    mapping: TableMappings<TTables>
): Dict<TableNames<TTables>[]>;

Parameters

Parameter

Type

Description

schema

TypedSchema<TTables>

mapping

TableMappings<TTables>

Returns:

Dict<TableNames<TTables>[]>

How was this page?