Skip to content

Commit 924bc39

Browse files
authored
Stability changes for version 5.0.0 (#105)
1 parent 15c1a6a commit 924bc39

Some content is hidden

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

66 files changed

+5728
-3035
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 28 deletions
This file was deleted.

.bumpversion.toml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[tool.bumpversion]
2+
current_version = "5.0.0"
3+
commit = false
4+
tag = false
5+
6+
[[tool.bumpversion.files]]
7+
filename = "CMakeLists.txt"
8+
search = "project(c-questdb-client VERSION {current_version})"
9+
replace = "project(c-questdb-client VERSION {new_version})"
10+
11+
[[tool.bumpversion.files]]
12+
filename = "doc/SECURITY.md"
13+
search = "questdb-rs/{current_version}/"
14+
replace = "questdb-rs/{new_version}/"
15+
16+
[[tool.bumpversion.files]]
17+
filename = "questdb-rs/Cargo.toml"
18+
search = "version = \"{current_version}\""
19+
replace = "version = \"{new_version}\""
20+
21+
[[tool.bumpversion.files]]
22+
filename = "./questdb-rs/README.md"
23+
search = "questdb-rs/{current_version}/"
24+
replace = "questdb-rs/{new_version}/"
25+
26+
[[tool.bumpversion.files]]
27+
filename = "questdb-rs/README.md"
28+
search = "https://github.com/questdb/c-questdb-client/tree/{current_version}/"
29+
replace = "https://github.com/questdb/c-questdb-client/tree/{new_version}/"
30+
31+
[[tool.bumpversion.files]]
32+
filename = "questdb-rs/README.md"
33+
search = "https://github.com/questdb/c-questdb-client/blob/{current_version}/questdb-rs/"
34+
replace = "https://github.com/questdb/c-questdb-client/blob/{new_version}/questdb-rs/"
35+
36+
[[tool.bumpversion.files]]
37+
filename = "questdb-rs-ffi/Cargo.toml"
38+
search = "version = \"{current_version}\""
39+
replace = "version = \"{new_version}\""
40+
41+
[[tool.bumpversion.files]]
42+
filename = "include/questdb/ingress/line_sender.hpp"
43+
search = "questdb/c++/{current_version}"
44+
replace = "questdb/c++/{new_version}"
45+
46+
[[tool.bumpversion.files]]
47+
filename = ".bumpversion.toml"
48+
search = "current_version = \"{current_version}\""
49+
replace = "current_version = \"{new_version}\""

CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
cmake_minimum_required(VERSION 3.15.0)
22
project(c-questdb-client VERSION 5.0.0)
3-
set(PROJECT_PRE_RELEASE "rc1")
43

54
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
65
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
@@ -107,6 +106,10 @@ if (QUESTDB_TESTS_AND_EXAMPLES)
107106
line_sender_c_example_array_elem_strides
108107
examples/concat.c
109108
examples/line_sender_c_example_array_elem_strides.c)
109+
compile_example(
110+
line_sender_c_example_array_c_major
111+
examples/concat.c
112+
examples/line_sender_c_example_array_c_major.c)
110113
compile_example(
111114
line_sender_c_example_auth
112115
examples/concat.c
@@ -138,9 +141,15 @@ if (QUESTDB_TESTS_AND_EXAMPLES)
138141
compile_example(
139142
line_sender_cpp_example_array_elem_strides
140143
examples/line_sender_cpp_example_array_elem_strides.cpp)
144+
compile_example(
145+
line_sender_cpp_example_array_custom
146+
examples/line_sender_cpp_example_array_custom.cpp)
141147
compile_example(
142148
line_sender_cpp_example_auth
143149
examples/line_sender_cpp_example_auth.cpp)
150+
compile_example(
151+
line_sender_cpp_example_array_c_major
152+
examples/line_sender_cpp_example_array_c_major.cpp)
144153
compile_example(
145154
line_sender_cpp_example_tls_ca
146155
examples/line_sender_cpp_example_tls_ca.cpp)

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,17 @@ The library supports the following ILP protocol versions.
4848

4949
These protocol versions are supported over both HTTP and TCP.
5050

51-
If you use HTTP, the library will automatically detect the server's
52-
latest supported protocol version and use it. If you use TCP, you can specify the
53-
`protocol_version=N` parameter when constructing the `Sender` object.
54-
55-
| Version | Description | Server Comatibility |
51+
* If you use HTTP and `protocol_version=auto` or unset, the library will
52+
automatically detect the server's
53+
latest supported protocol version and use it (recommended).
54+
* If you use TCP, you can specify the
55+
`protocol_version=N` parameter when constructing the `Sender` object
56+
(TCP defaults to `protocol_version=1`).
57+
58+
| Version | Description | Server Compatibility |
5659
| ------- | ------------------------------------------------------- | --------------------- |
5760
| **1** | Over HTTP it's compatible InfluxDB Line Protocol (ILP) | All QuestDB versions |
58-
| **2** | 64-bit floats sent as binary, adds n-dimentional arrays | 8.4.0+ (2023-10-30) |
61+
| **2** | 64-bit floats sent as binary, adds n-dimentional arrays | 9.0.0+ (2023-10-30) |
5962

6063
## Getting Started
6164

ci/format_cpp.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import sys
99
sys.dont_write_bytecode = True
1010
import subprocess
11+
import glob
1112

1213
FILES = [
1314
'include/questdb/ingress/line_sender.h',
@@ -18,6 +19,12 @@
1819
'cpp_test/test_line_sender.cpp',
1920
]
2021

22+
# Also include all examples.
23+
FILES += glob.glob('examples/*.c')
24+
FILES += glob.glob('examples/*.cpp')
25+
FILES += glob.glob('examples/*.h')
26+
FILES += glob.glob('examples/*.hpp')
27+
2128
if __name__ == '__main__':
2229
check_mode = '--check' in sys.argv
2330
command = [

ci/run_all_tests.py

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@
2020
import pathlib
2121
import platform
2222
import subprocess
23+
import shlex
2324

2425

2526
def run_cmd(*args, cwd=None):
26-
sys.stderr.write(f'About to run: {args!r}:\n')
27+
args_str = shlex.join(args)
28+
sys.stderr.write(f'About to run: {args_str}:\n')
2729
try:
2830
subprocess.check_call(args, cwd=cwd)
29-
sys.stderr.write(f'Success running: {args!r}.\n')
31+
sys.stderr.write(f'Success running: {args_str}.\n')
3032
except subprocess.CalledProcessError as cpe:
31-
sys.stderr.write(f'Command {args!r} failed with return code {cpe.returncode}.\n')
33+
sys.stderr.write(f'Command `{args_str}` failed with return code {cpe.returncode}.\n')
3234
sys.exit(cpe.returncode)
3335

3436
def main():
@@ -45,9 +47,18 @@ def main():
4547

4648
run_cmd('cargo', 'test',
4749
'--', '--nocapture', cwd='questdb-rs')
48-
run_cmd('cargo', 'test', '--no-default-features', '--features=aws-lc-crypto,tls-native-certs',
50+
run_cmd('cargo', 'test',
51+
'--no-default-features',
52+
'--features=aws-lc-crypto,tls-native-certs,sync-sender',
53+
'--', '--nocapture', cwd='questdb-rs')
54+
run_cmd('cargo', 'test', '--no-default-features',
55+
'--features=ring-crypto,tls-native-certs,sync-sender',
56+
'--', '--nocapture', cwd='questdb-rs')
57+
run_cmd('cargo', 'test', '--no-default-features',
58+
'--features=ring-crypto,tls-webpki-certs,sync-sender-tcp',
4959
'--', '--nocapture', cwd='questdb-rs')
50-
run_cmd('cargo', 'test', '--no-default-features', '--features=ring-crypto,tls-native-certs,ilp-over-http',
60+
run_cmd('cargo', 'test', '--no-default-features',
61+
'--features=ring-crypto,tls-webpki-certs,sync-sender-http',
5162
'--', '--nocapture', cwd='questdb-rs')
5263
run_cmd('cargo', 'test', '--features=almost-all-features',
5364
'--', '--nocapture', cwd='questdb-rs')

ci/run_tests_pipeline.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ stages:
6262
displayName: "Compile QuestDB"
6363
inputs:
6464
mavenPOMFile: "questdb/pom.xml"
65-
jdkVersionOption: "1.11"
65+
jdkVersionOption: "1.17"
6666
options: "-DskipTests -Pbuild-web-console"
6767
############################# temp for test end #####################
6868
- script: python3 ci/run_all_tests.py
@@ -132,7 +132,7 @@ stages:
132132
displayName: "Compile QuestDB"
133133
inputs:
134134
mavenPOMFile: 'questdb/pom.xml'
135-
jdkVersionOption: '1.11'
135+
jdkVersionOption: '1.17'
136136
options: "-DskipTests -Pbuild-web-console"
137137
- script: |
138138
python3 system_test/test.py run --repo ./questdb -v

0 commit comments

Comments
 (0)