sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

Table "product_metadata" incorrectly generates model name.

Open qanghaa opened this issue 1 year ago • 0 comments

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

qanghaa avatar Aug 18 '24 07:08 qanghaa