Skip to content

Enhancement: include sqlc version in generated files #1456

Closed
@zlymeda

Description

@zlymeda

Currently, sqlc adds this comment to generated files:

// Code generated by sqlc. DO NOT EDIT.

It would be nice to include also the sqlc version, something like:

// Code generated by sqlc v1.12.0. DO NOT EDIT.

Why? If a developer is using an older version of sqlc, he/she would notice that before committing:

- // Code generated by sqlc v1.13.0. DO NOT EDIT.
+ // Code generated by sqlc v1.12.0. DO NOT EDIT.
// ...

What do you think?

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