Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bump the crate to v0.2.0.
Changes:
Added
grafana_plugin_sdk::arrow2
data
field toSubscribeStreamRequest
andSubscribeStreamResponse
,matching the latest release of the protobuf descriptors.
FieldType
andIntoFieldType
, meaning that iterators or vecs of them can be turned intoField
s:bool
SystemTime
chrono::Date
chrono::NaiveDate
chrono::NaiveDateTime
FieldType
andIntoFieldType
traits are now public. These are useful whenwriting generic functions to convert iterators, vecs, slices or arrays into
Field
s.Changed
Request
andResponse
structs in the backend part of the SDK as#[non_exhaustive]
since changes to those structs are largely outside of our control;the protobuf descriptors may add additional fields, and this allows us to include them
without breaking our API. Some
Response
types now have new constructors which shouldbe used.
data
part of the SDK are also now non-exhaustive,for the same reason as above. These types now either have separate constructors or
Default
impls which can be used to create them.Clone
for various backend structs:AppInstanceSettings
DataSourceInstanceSettings
PluginContext
Role
(is also nowCopy
)TimeRange
User
Iter
associated type ofbackend::DataService
toStream
, and updatethe return type of
query_data
accordingly. This allows each inner query to be handledasynchronously and concurrently in a simple way.
live::Error
type is now an enum and provides more detail on failures.path
field ofSubscribeStreamRequest
,RunStreamRequest
andPublishStreamRequest
are nowlive::Path
types rather than arbitrary strings.