Skip to content

Adding clone and debug to WriteQuery and ReadQuery. #63

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

Merged
merged 4 commits into from
Aug 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Rust

on: [push]
on: [push, pull_request]

jobs:
style:
Expand Down
1 change: 1 addition & 0 deletions influxdb/src/query/read_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use crate::query::{QueryType, ValidQuery};
use crate::{Error, Query};

#[derive(Debug, Clone)]
pub struct ReadQuery {
queries: Vec<String>,
}
Expand Down
2 changes: 2 additions & 0 deletions influxdb/src/query/write_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ impl<T: Into<Type>> WriteType for Option<T> {
}

/// Internal Representation of a Write query that has not yet been built
#[derive(Debug, Clone)]
pub struct WriteQuery {
fields: Vec<(String, Type)>,
tags: Vec<(String, Type)>,
Expand Down Expand Up @@ -105,6 +106,7 @@ impl WriteQuery {
}
}

#[derive(Debug, Clone)]
pub enum Type {
Boolean(bool),
Float(f64),
Expand Down