We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support_big_numbers
related: #13, #15
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
string
big_number_strings
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
number
https://github.com/sqlc-dev/sqlc-gen-typescript/pull/13/files#diff-2078b150759ca61c4ae2bb37cb070f5a2d81e64c7b4d1aa126f621e2520f13d0R641-R643
but should respect PK's type.
The text was updated successfully, but these errors were encountered:
@kyleconroy How can I find out PK's type? I checked every value in GenerateRequest, but could not find one.
GenerateRequest
AFAIK, we can return Promise<string | number> from :execlastid, but it's not possible to define explicit type with current information.
Promise<string | number>
:execlastid
Sorry, something went wrong.
number | string
Successfully merging a pull request may close this issue.
related: #13, #15
sqlc-gen-typescript/examples/node-mysql2/src/db/query_sql.ts
Lines 94 to 100 in 1a42ab0
This method should return
string
assupport_big_numbers
andbig_number_strings
is enabled in sqlc.dev.ymlsqlc-gen-typescript/examples/sqlc.dev.yaml
Lines 43 to 54 in 1a42ab0
This is because I explicitly declared a return type as
number
herehttps://github.com/sqlc-dev/sqlc-gen-typescript/pull/13/files#diff-2078b150759ca61c4ae2bb37cb070f5a2d81e64c7b4d1aa126f621e2520f13d0R641-R643
but should respect PK's type.
The text was updated successfully, but these errors were encountered: