Skip to content

Distinct Select queries projecting the same columns should have same Record type  #54

@Swoorup

Description

@Swoorup

Suppose I have the following:

        type SelectAll = NpgsqlCommand<"""
            SELECT name, address, state FROM person_table 
        """, TPConnStr>

        type SelectByState = NpgsqlCommand<"""
            SELECT name, address, state FROM person_table 
            WHERE state = @state
        """, TPConnStr>

Should both Selects result into the same type? Reason is that I am executing either one of the query based on a enum but have to write a minor boilerplate due to those types not having equality constraints.

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