New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why the struct don't have member? #26
Comments
maybe it is mysql 8.0 problem, see #25 . If you can use this mysql dsn string to login your mysql, gen should succeed to generate those code. If it is not mysql 8.0 problem, maybe your table has some special defination, you can paste the table here |
CREATE TABLE |
see #25 |
also #19 |
gen -c 'mitra:shopee123!@tcp(10.12.77.233)/apc_report_db?&parseTime=True' --database apc_report_db -t dp_order_report_tab --package dbreport --json --gorm --guregu
package model
import (
"database/sql"
"time"
)
var (
_ = time.Second
_ = sql.LevelDefault
_ = null.Bool{}
)
type DpOrderReportTab struct {
}
// TableName sets the insert table name for this struct type
func (d *DpOrderReportTab) TableName() string {
return "dp_order_report_tab"
}
The text was updated successfully, but these errors were encountered: