File tree Expand file tree Collapse file tree 3 files changed +4
-25
lines changed
integrations/serde_integration Expand file tree Collapse file tree 3 files changed +4
-25
lines changed Original file line number Diff line number Diff line change 24
24
//! # #[tokio::main]
25
25
//! # async fn main() -> Result<(), influxdb::Error> {
26
26
//! let client = Client::new("http://localhost:8086", "test");
27
- //! let query = Query::raw_read_query (
27
+ //! let query = ReadQuery::new (
28
28
//! "SELECT temperature FROM /weather_[a-z]*$/ WHERE time > now() - 1m ORDER BY DESC",
29
29
//! );
30
30
//! let mut db_result = client.json_query(query).await?;
Original file line number Diff line number Diff line change 4
4
//! # Examples
5
5
//!
6
6
//! ```rust
7
- //! use influxdb::{Query , Timestamp};
7
+ //! use influxdb::{ReadQuery , Timestamp};
8
8
//! use influxdb::InfluxDbWriteable;
9
9
//!
10
10
//! let write_query = Timestamp::Nanoseconds(0).into_query("measurement")
14
14
//!
15
15
//! assert!(write_query.is_ok());
16
16
//!
17
- //! let read_query = Query::raw_read_query ("SELECT * FROM weather")
17
+ //! let read_query = ReadQuery::new ("SELECT * FROM weather")
18
18
//! .build();
19
19
//!
20
20
//! assert!(read_query.is_ok());
@@ -195,25 +195,6 @@ impl InfluxDbWriteable for Timestamp {
195
195
}
196
196
}
197
197
198
- impl dyn Query {
199
- /// Returns a [`ReadQuery`](crate::ReadQuery) builder.
200
- ///
201
- /// # Examples
202
- ///
203
- /// ```rust
204
- /// use influxdb::Query;
205
- ///
206
- /// Query::raw_read_query("SELECT * FROM weather"); // Is of type [`ReadQuery`](crate::ReadQuery)
207
- /// ```
208
- #[ deprecated( since = "0.5.0" , note = "Use ReadQuery::new instead" ) ]
209
- pub fn raw_read_query < S > ( read_query : S ) -> ReadQuery
210
- where
211
- S : Into < String > ,
212
- {
213
- ReadQuery :: new ( read_query)
214
- }
215
- }
216
-
217
198
#[ derive( Debug ) ]
218
199
#[ doc( hidden) ]
219
200
pub struct ValidQuery ( String ) ;
Original file line number Diff line number Diff line change 1
- //! Read Query Builder returned by Query::raw_read_query
2
- //!
3
- //! Can only be instantiated by using Query::raw_read_query
1
+ //! Read Query Builder
4
2
5
3
use crate :: query:: { QueryType , ValidQuery } ;
6
4
use crate :: { Error , Query } ;
You can’t perform that action at this time.
0 commit comments