Skip to content

Allow disabling duplicate query name checks #4001

Open
@tvallotton

Description

@tvallotton

What do you want to change?

Hi, I'd like if it were possible to disable sqlc's checks on uniqueness of queries, and let that be handled by the generation plugin.

I'd like to be able to do this:

await queries.author.get_by_id(author.id)
await queries.book.get_by_id(book.id)

I implemented a plugin which works, however, sqlc would complain that I have two get_by_id queries. Maybe a simple option to disable_duplicate_query_name_check: true would suffice.

What database engines need to be changed?

No response

What programming language backends need to be changed?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions