Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit 7ba2ab4

Browse files
authored
Merge pull request #2 from garaemon/2020.09.29-add-no-quotes
Add method to add string without " for tags
2 parents 54ae463 + 11056a9 commit 7ba2ab4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/influxdb-cpp-rest/influxdb_line.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ namespace influxdb {
8787
return *this;
8888
}
8989

90+
key_value_pairs& add_no_quotes(std::string const& key, std::string const& value) {
91+
::influxdb::utility::throw_on_invalid_identifier(key);
92+
93+
add_comma_if_necessary();
94+
95+
res << key << "=" << value << "";
96+
97+
return *this;
98+
}
99+
90100
inline std::string get() const {
91101
return res.str();
92102
}

0 commit comments

Comments
 (0)