Skip to content

Separate types and docstrings for query helpers #481

Open
@FeldrinH

Description

@FeldrinH

Currently the sql query helpers have a very generic docstring and a very complex and confusing type signature:
image
This makes using the helpers fairly confusing and error prone (at least for me). In particular, it makes it hard to know what a helper does when reading existing code.

Is there a possibilty to split the different query helpers into different function overloads so that they can each have their own type and docstring?

Or maybe it would be possible to do something like what slonik does and have the helpers be separate functions under sql (https://github.com/gajus/slonik#user-content-slonik-query-building).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions