-
Notifications
You must be signed in to change notification settings - Fork 234
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
cannnot find exist tab,e #165
Comments
I got this on the latest version v0.9.29 but it works for me on v0.9.27. I had to clone the repo, checkout v0.9.27 and then build it locally for it to work. (Also connecting to mssql as well) |
OK, thanks a lot. I tried this on v0.9.27, but it comes a small problem:
and it didn't seem to generate the element
type Field struct {
//[ 0] FieldId INT null: false primary: true isArray: false auto: true col: INT len: -1 default: []
FieldID int32 `gorm:"primary_key;AUTO_INCREMENT;column:FieldId;type:INT;"`
//[ 1] ReportingPointId INT null: false primary: false isArray: false auto: false col: INT len: -1 default: []
ReportingPointID int32 `gorm:"column:ReportingPointId;type:INT;"`
//[ 3] ItemFullName NVARCHAR(900) null: false primary: false isArray: false auto: false col: NVARCHAR len: 900 default: []
ItemFullName string `gorm:"column:ItemFullName;type:NVARCHAR;size:900;"`
//[ 4] Name NVARCHAR(256) null: false primary: false isArray: false auto: false col: NVARCHAR len: 256 default: []
Name string `gorm:"column:Name;type:NVARCHAR;size:256;"`
//[ 5] PreviousName NVARCHAR(256) null: true primary: false isArray: false auto: false col: NVARCHAR len: 256 default: []
PreviousName sql.NullString `gorm:"column:PreviousName;type:NVARCHAR;size:256;"`
//[ 6] ColumnName NVARCHAR(64) null: true primary: false isArray: false auto: false col: NVARCHAR len: 64 default: []
ColumnName sql.NullString `gorm:"column:ColumnName;type:NVARCHAR;size:64;"`
//[ 7] DataType NVARCHAR(64) null: false primary: false isArray: false auto: false col: NVARCHAR len: 64 default: []
DataType string `gorm:"column:DataType;type:NVARCHAR;size:64;"`
//[ 8] IsFilterable BIT null: false primary: false isArray: false auto: false col: BIT len: -1 default: []
IsFilterable bool `gorm:"column:IsFilterable;type:BIT;"`
//[ 9] IsIndexed BIT null: false primary: false isArray: false auto: false col: BIT len: -1 default: [0]
IsIndexed bool `gorm:"column:IsIndexed;type:BIT;default:0;"`
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gen --sqltype=mssql \
Warning - LoadMeta skipping table info for Field error: mssql: Invalid object name 'QLS_CXData.Field'.
Warning - LoadMeta skipping table info for MetricsDataSet error: mssql: Invalid object name 'QLS_CXData.MetricsDataSet'.
Skipping excluded table ReportingPoint
No tables loaded
The text was updated successfully, but these errors were encountered: