Skip to content

Commit 0ce4cff

Browse files
authored
BREAKING CHANGE: Create a Sender or SenderBuilder from configuration or env var (#54)
1 parent 3c326fd commit 0ce4cff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3689
-1541
lines changed

.bumpversion.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ replace = questdb-rs/{new_version}/
2626
[bumpversion:file:questdb-rs-ffi/Cargo.toml]
2727
search = version = "{current_version}"
2828
replace = version = "{new_version}"
29+
30+
[bumpversion:file:include/questdb/ingress/line_sender.hpp]
31+
search = questdb/c++/{current_version}
32+
replace = questdb/c++/{new_version}

CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,30 @@ endfunction()
9090
if (QUESTDB_TESTS_AND_EXAMPLES)
9191
compile_example(
9292
line_sender_c_example
93+
examples/concat.c
9394
examples/line_sender_c_example.c)
9495
compile_example(
9596
line_sender_c_example_auth
97+
examples/concat.c
9698
examples/line_sender_c_example_auth.c)
9799
compile_example(
98100
line_sender_c_example_tls_ca
101+
examples/concat.c
99102
examples/line_sender_c_example_tls_ca.c)
100103
compile_example(
101104
line_sender_c_example_auth_tls
105+
examples/concat.c
102106
examples/line_sender_c_example_auth_tls.c)
103107
compile_example(
104108
line_sender_c_example_http
109+
examples/concat.c
105110
examples/line_sender_c_example_http.c)
111+
compile_example(
112+
line_sender_c_example_from_conf
113+
examples/line_sender_c_example_from_conf.c)
114+
compile_example(
115+
line_sender_c_example_from_env
116+
examples/line_sender_c_example_from_env.c)
106117
compile_example(
107118
line_sender_cpp_example
108119
examples/line_sender_cpp_example.cpp)
@@ -118,6 +129,12 @@ if (QUESTDB_TESTS_AND_EXAMPLES)
118129
compile_example(
119130
line_sender_cpp_example_http
120131
examples/line_sender_cpp_example_http.cpp)
132+
compile_example(
133+
line_sender_cpp_example_from_conf
134+
examples/line_sender_cpp_example_from_conf.cpp)
135+
compile_example(
136+
line_sender_cpp_example_from_env
137+
examples/line_sender_cpp_example_from_env.cpp)
121138

122139
# Include Rust tests as part of the tests run
123140
add_test(

cbindgen.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ header = """/*******************************************************************
88
* \\__\\_\\\\__,_|\\___||___/\\__|____/|____/
99
*
1010
* Copyright (c) 2014-2019 Appsicle
11-
* Copyright (c) 2019-2023 QuestDB
11+
* Copyright (c) 2019-2024 QuestDB
1212
*
1313
* Licensed under the Apache License, Version 2.0 (the "License");
1414
* you may not use this file except in compliance with the License.

ci/run_all_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def main():
3838
test_line_sender_path = next(iter(
3939
build_dir.glob(f'**/test_line_sender{exe_suffix}')))
4040
system_test_path = pathlib.Path('system_test') / 'test.py'
41-
qdb_v = '7.3.9' # The version of QuestDB we'll test against.
41+
qdb_v = '7.3.10' # The version of QuestDB we'll test against.
4242

4343
run_cmd('cargo', 'test', '--', '--nocapture', cwd='questdb-rs')
4444
run_cmd('cargo', 'test', '--all-features', '--', '--nocapture', cwd='questdb-rs')

cpp_test/build_env.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* \__\_\\__,_|\___||___/\__|____/|____/
77
*
88
* Copyright (c) 2014-2019 Appsicle
9-
* Copyright (c) 2019-2023 QuestDB
9+
* Copyright (c) 2019-2024 QuestDB
1010
*
1111
* Licensed under the Apache License, Version 2.0 (the "License");
1212
* you may not use this file except in compliance with the License.

cpp_test/mock_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* \__\_\\__,_|\___||___/\__|____/|____/
77
*
88
* Copyright (c) 2014-2019 Appsicle
9-
* Copyright (c) 2019-2023 QuestDB
9+
* Copyright (c) 2019-2024 QuestDB
1010
*
1111
* Licensed under the Apache License, Version 2.0 (the "License");
1212
* you may not use this file except in compliance with the License.

cpp_test/mock_server.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* \__\_\\__,_|\___||___/\__|____/|____/
77
*
88
* Copyright (c) 2014-2019 Appsicle
9-
* Copyright (c) 2019-2023 QuestDB
9+
* Copyright (c) 2019-2024 QuestDB
1010
*
1111
* Licensed under the Apache License, Version 2.0 (the "License");
1212
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)