-
Notifications
You must be signed in to change notification settings - Fork 993
Closed
Description
What do you want to change?
I'm trying to generate code based on queries like this
-- name: InsertPurchaseGuid :exec INSERT INTO purchase_guids (external_id, guid, created_at, updated_at, partner_id, payment_method_id) VALUES (:external_id, :guid, :created_at, :updated_at, :partner_id, :payment_method_id);
So that I can use the NamedExec function of the mysql driver. But whenever I run sqlc generate I get this error
db/queries/subs/insert_purchase_guid.sql:3:10: syntax error near ":external_id, :guid, :created_at, :updated_at, :partner_id, :payment_method_id);"
Is this not supported at all? Or am I doing it wrong?
Thank you!
What database engines need to be changed?
MySQL
What programming language backends need to be changed?
Go
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels