execlastid doesn't respect `support_big_numbers`
yshrsmz opened this issue · comments
sqlc-gen-typescript/examples/node-mysql2/src/db/query_sql.ts
Lines 94 to 100 in 1a42ab0
This method should return string
as support_big_numbers
and big_number_strings
is enabled in sqlc.dev.yml
sqlc-gen-typescript/examples/sqlc.dev.yaml
Lines 43 to 54 in 1a42ab0
This is because I explicitly declared a return type as number
here
but should respect PK's type.
@kyleconroy How can I find out PK's type?
I checked every value in GenerateRequest
, but could not find one.
AFAIK, we can return Promise<string | number>
from :execlastid
, but it's not possible to define explicit type with current information.