Replies: 2 comments
-
Running with all of those files in a 'testing' folder on ubuntu running: I would guess it's something between your docker command and your container's files. db.go: package MySqlExample import ( type DBTX interface { func New(db DBTX) *Queries { type Queries struct { func (q *Queries) WithTx(tx *sql.Tx) *Queries { models.go: package MySqlExample import ( type Author struct { query.sql.go: package MySqlExample import ( const listAuthors = func (q *Queries) ListAuthors(ctx context.Context) ([]Author, error) { |
Beta Was this translation helpful? Give feedback.
-
Try removing the byte-order mark (BOM) from your |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Windows 11 using docker (but if I try to use sql.exe, there is same results)
sqlc.yaml:
schema.sql:
query.sql:
command:
response:
^ allways shows first line of schema.sql file
If I will try to use 'sqlite' instead of 'mysql' there is another error:
Could someone has this issue? Please tell me what did you do, to make it work.
Beta Was this translation helpful? Give feedback.
All reactions