Skip to content
New issue

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

Propose add prepare query for single query #2905

Open
tran-the-lam opened this issue Oct 24, 2023 · 1 comment · May be fixed by #3136
Open

Propose add prepare query for single query #2905

tran-the-lam opened this issue Oct 24, 2023 · 1 comment · May be fixed by #3136
Labels
enhancement New feature or request triage New issues that hasn't been reviewed

Comments

@tran-the-lam
Copy link

What do you want to change?

Currently, the Prepare SQL Statement Function is being set up with all SQL statements. In sql, there are statements I want to set up and prepare, there are statements I don't want. How do I do it?

What database engines need to be changed?

MySQL

What programming language backends need to be changed?

Go

@tran-the-lam tran-the-lam added enhancement New feature or request triage New issues that hasn't been reviewed labels Oct 24, 2023
@tran-the-lam tran-the-lam changed the title Add prepare query for single query Propose add prepare query for single query Oct 26, 2023
@darkfeline
Copy link

+1 for SQLite. Looking at the generated code currently, it should be fairly trivial as each prepared query has its own struct field, so we just need to decide on an API to prepare individual queries.

darkfeline added a commit to darkfeline/sqlc that referenced this issue Jan 15, 2024
@darkfeline darkfeline linked a pull request Jan 15, 2024 that will close this issue
darkfeline added a commit to darkfeline/sqlc that referenced this issue Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage New issues that hasn't been reviewed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants