sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

feat(Go):Add query_parameter_limit conf to codegen

Open go-mez opened this issue 3 years ago • 2 comments

Related to: #1498.

I'm not sure about the approach I took, so just let me know if im solving it wrongly

go-mez avatar Apr 18 '22 15:04 go-mez

@kyleconroy sorry, now its passing all the tests, i think... I was not aware of the dev guide (https://github.com/kyleconroy/sqlc/blob/main/docs/guides/development.md)... i was just running make but it wasnt throwing any error

go-mez avatar Apr 20 '22 16:04 go-mez

@go-mez Sorry for taking so long to get you a review. I know you've resolved conflicts a few times. I can promise that you'll only need to do it one more time. Thanks again for understanding.

kyleconroy avatar Aug 29 '22 04:08 kyleconroy

Any chance, to merge this to master? I could help if needed.

polderudo avatar Mar 01 '23 11:03 polderudo

Not sure what's happened, but the tests haven't run for this PR. Maybe another rebase and push will fix things?

kyleconroy avatar Mar 01 '23 17:03 kyleconroy

@go-mez any chance to get this rebased and pushed? seems like only the docs were waiting... Would be cool to have that feature

polderudo avatar Mar 07 '23 13:03 polderudo

@polderudo i'll do it. dont worry!

go-mez avatar Mar 09 '23 19:03 go-mez

@kyleconroy i think it is okay now. could you approve the workflows please ?

go-mez avatar Mar 09 '23 20:03 go-mez

@polderudo i'll do it. dont worry!

Thanks man! I didn't want to push however, just asked because we are at the start of a project and that would save a lot of refactoring.

polderudo avatar Mar 09 '23 21:03 polderudo

@kyleconroy could you please take a look at the PR and approve the workflows?

go-mez avatar Mar 17 '23 14:03 go-mez

@josharian thank you for the review and the suggestion. i will try to address it

go-mez avatar Mar 31 '23 21:03 go-mez

ping @kyleconroy

josharian avatar Apr 06 '23 01:04 josharian

thankyou guys!

go-mez avatar Apr 07 '23 17:04 go-mez

Works nice. Thanks for the work, although there is a issue with pgx. Using sql_package: "pgx/v5" and building with sqlc generate --experimental -f sqlc.yaml will not add the import to "github.com/jackc/pgx/v5/pgtype" to the generated files.

polderudo avatar Apr 09 '23 16:04 polderudo

Did you find any time to look into this go-mez?

polderudo avatar Apr 26 '23 10:04 polderudo

@polderudo do you know if this error was happening before? ill try to check it anytime soon.

could you also provide an example in the playground ? (https://play.sqlc.dev/)

go-mez avatar Apr 27 '23 23:04 go-mez

It's working, if i remove the new config "query_parameter_limit": 999

Here is a palyground: https://play.sqlc.dev/p/29a65ea348dd6ce7915b9106fc8e2eecb6ea83b53705ae72d9096ac4ac7c56d4

polderudo avatar Apr 28 '23 05:04 polderudo

ping. any update?

polderudo avatar Jun 06 '23 10:06 polderudo