Skip to content

Table "product_metadata" incorrectly generates model name. #3552

Closed
@qanghaa

Description

@qanghaa

Version

1.27.0

What happened?

I have 2 tables with name like bonuses, product_metadata when I using sqlc to generate models. The struct name generated seems unexpected

  • table bonuses => struct name Bonuse
  • table product_metadata => struct name ProductMetaDatum

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

https://play.sqlc.dev/p/c459554e53b478b864dd0728b83783f6e7e22bc10c737cd3834f9df7435cec67

What operating system are you using?

Linux

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

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