You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened?
When use query_parameter_limit config, the generated code does not import the package.
And emit_interface=true, the generated Querier interface does not import the sql.NullTime or time package.
import (
"context""database/sql"// this line not gen"encoding/json""time"
)
func (q*Queries) MarkNoticeDone(ctx context.Context, noticeAt sql.NullTime, iDuint64) error {
_, err:=q.exec(ctx, q.markNoticeDoneStmt, markNoticeDone, noticeAt, iD)
returnerr
}
querier.go:
import (
"context""database/sql"// this line not gen"time"// this line not gen
)
typeQuerierinterface {
CreateNotice(ctx context.Context, cntstring, createdAt time.Time) errorMarkNoticeDone(ctx context.Context, noticeAt sql.NullTime, iDuint64) error
}
What operating system are you using?
macOS
What database engines are you using?
MySQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Version
1.19.1
What happened?
What happened?
When use
query_parameter_limit
config, the generated code does not import the package.And
emit_interface=true
, the generatedQuerier interface
does not import thesql.NullTime
ortime
package.config:
notice.sql.go:
querier.go:
What operating system are you using?
macOS
What database engines are you using?
MySQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: