Replies: 1 comment
-
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.
-
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