-
Notifications
You must be signed in to change notification settings - Fork 233
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
generated struct has no fields #30
Comments
mysql 5.7 |
Have the same problem.
|
|
I has the same problem , ---mysql version info
|
最好把你的表信息贴上来以便debug,或者你自己看看schema为什么没能获取出数据库的元数据 |
see #28, 看看是否是同一个问题,更新一下gen试试 |
Can you provide the table ddl from a db dump? |
`package model
import (
"database/sql"
"time"
"github.com/guregu/null"
)
var (
_ = time.Second
_ = sql.LevelDefault
_ = null.Bool{}
)
type UserAliinfo struct {
}
// TableName sets the insert table name for this struct type
func (u *UserAliinfo) TableName() string {
return "user_aliinfo"
}
`
The text was updated successfully, but these errors were encountered: