-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: type-safe conversion for line-protocol Addfield #43 #42
Conversation
@arukiidou, thank you for using our client and for your PR. We're excited to review it once it's ready. |
10fcc48
to
377043a
Compare
ready for review. 👍 |
fixed,sorry🙏 |
influxdb3/value.go
Outdated
float64 | int64 | uint64 | string | []byte | bool | ||
} | ||
|
||
// [Float] is IEEE-754 64-bit floating-point numbers. Default numerical type. InfluxDB supports scientific notation in float field values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add Float
as a prefix to docs:
// [Float] is IEEE-754 64-bit floating-point numbers. Default numerical type. InfluxDB supports scientific notation in float field values. | |
// Float [Float] is IEEE-754 64-bit floating-point numbers. Default numerical type. InfluxDB supports scientific notation in float field values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
influxdb3/value.go
Outdated
~float32 | ~float64 | ||
} | ||
|
||
// [Integer] is signed 64-bit integers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add Integer
as a prefix to docs:
// [Integer] is signed 64-bit integers. | |
// Integer [Integer] is signed 64-bit integers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
influxdb3/value.go
Outdated
~int | ~int8 | ~int16 | ~int32 | ~int64 | ||
} | ||
|
||
// [UInteger] is unsigned 64-bit integers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add UInteger
as a prefix to docs:
// [UInteger] is unsigned 64-bit integers. | |
// UInteger [UInteger] is unsigned 64-bit integers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
influxdb3/value.go
Outdated
~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ||
} | ||
|
||
// [String] is plain text string. Length limit 64KB. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add String
as a prefix to docs:
// [String] is plain text string. Length limit 64KB. | |
// String [String] is plain text string. Length limit 64KB. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
influxdb3/value.go
Outdated
~string | ~[]byte | ||
} | ||
|
||
// [Boolean] is true or false values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add Boolean
as a prefix to docs:
// [Boolean] is true or false values. | |
// Boolean [Boolean] is true or false values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
I have a question regarding the use of lineprotocol.Value. Is its usage necessary? What do you think about adding something like func (m *Point) AddStringField(k string, v string) *Point {
m.AddField(k, v)
return m
} |
|
We aim to synchronize the API across our v3 clients — JS Client PR #89 |
5f4b40c
to
d741d07
Compare
@arukiidou thanks again for your PR. Can you please align your code with upcoming changes for |
Yes, I will do so. It may take some time. |
Signed-off-by: junya koyama <arukiidou@yahoo.co.jp>
Signed-off-by: junya koyama <arukiidou@yahoo.co.jp>
Signed-off-by: junya koyama <arukiidou@yahoo.co.jp>
Signed-off-by: junya koyama <arukiidou@yahoo.co.jp>
Signed-off-by: junya koyama <arukiidou@yahoo.co.jp>
f67bb6f
to
5ffea2d
Compare
|
Proposed Changes
time.Time
conversiontime.Duration
- usingfmt.Stringer
Usage
Checklist