Skip to content

Does sqlc support conditional config? #2201

Description

@Shihansin

What do you want to change?

when you use sqlc config , it will config all the queries to sql prepared statement , but which what i want , is only part of query i need to config to prepared queries , how can i do this ?
//
version: "2"
sql:

  • engine: "postgresql"
    queries: "db/queries"
    schema: "db/migration"
    gen:
    go:
    package: "db"
    out: "db/sqlc"
    emit_json_tags: true
    emit_interface: true
    emit_prepared_queries: true

What database engines need to be changed?

PostgreSQL

What programming language backends need to be changed?

Go

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageNew issues that hasn't been reviewed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions