Skip to content

Gen shortcut for COUNT(DISTINCT column_name) #1386

Open
@renom

Description

@renom

There's Count method that is generated for a table:

Count(ctx context.Context, exec boil.ContextExecutor) (int64, error) // performs COUNT(*)

It'd be useful to have CountDistinct method:

CountDistinct(ctx context.Context, exec boil.ContextExecutor, column string) (int64, error) // performs COUNT(DISTINCT column)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions