Skip to content

Support LOCK TABLE queries #1643

Open
Open

Description

@juhaszp-uhu

What do you want to change?

Postgresql has a query type, LOCK TABLE, which is not supported by sqlc: it seems to be silently ignored, no code is generated for it. Of course it's possible to use such a query with a raw pgx call, but it would be neat if sqlc supported it out of the box.

What database engines need to be changed?

PostgreSQL

What programming language backends need to be changed?

Go, Python, Kotlin

Activity

  1. added and removed
    triageNew issues that hasn't been reviewed
    on Jun 4, 2022
  2. kyleconroy commented on Jun 4, 2022

    @kyleconroy
    Collaborator

    Today sqlc only supports generating queries for certain subset of query types (SELECT / INSERT / UPDATE / DELETE).

    I'd be happy to add support for more queries.

  3. kyleconroy commented on Jun 4, 2022

    @kyleconroy
    Collaborator

    Tracking here #1661

  4. changed the title [-]support LOCK TABLE queries[/-] [+]Support LOCK TABLE queries[/+] on Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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