sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

Propose add prepare query for single query

Open tran-the-lam opened this issue 2 years ago • 1 comments

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 avatar Oct 24 '23 07:10 tran-the-lam

+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 avatar Jan 15 '24 01:01 darkfeline