We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
type Electric struct { ID int64 `gorm:"id" greptime:"-"` DataTime time.Time `gorm:"data_time;primaryKey" greptime:"timestamp;column:data_time;type:timestamp;precision:second"` DeviceNo string `gorm:"device_no;primaryKey" greptime:"tag;column:device_no;type:string"` Value float32 `gorm:"value" greptime:"field;column:value;type:float32"` }
use gorm to query data, ignore ID when writing to greptimedb
The text was updated successfully, but these errors were encountered:
Do you want to ignore the fields marked with - when writing data? @adminpass
-
Sorry, something went wrong.
@daviderli614 yes, use greptime:"-"
hello @adminpass This feature has been supported in SDK version v0.6.0
daviderli614
No branches or pull requests
use gorm to query data, ignore ID when writing to greptimedb
The text was updated successfully, but these errors were encountered: