Skip to content

Clarification about selectMany API #53

@7h3kk1d

Description

@7h3kk1d

Looking at selectMany in the TableAPI
selectMany :: t1:Table * project:(r1:Row * n:Number -> t2:Table) * result:(r2:Row * r3:Row -> r4:Row) -> t2:Table

I'm wondering if the return value is supposed to be a t3: Table with the constraints adjusted to say that the t3 should have the same schema as r4.

The TS type-signature seems to be closer to that:

export let selectMany = <S1 extends STop, S2 extends STop, S3 extends STop>(t1: Table<S1>, project: (r1: Row<S1>, n: number) => Table<S2>, result: (r2: Row<S1>, r3: Row<S2>) => Row<S3>): Table<S3> => {

I also think it's based off of this linq entry it should have 3 row schema types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions