Skip to content

Stability changes for version 5.0.0 #105

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

Open
wants to merge 45 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
1922030
doc tweak
amunra Jun 3, 2025
f5dcf86
fixed a typo
amunra Jun 3, 2025
8464f73
consolidating error codes
amunra Jun 3, 2025
9d85550
fixed C++ formatting
amunra Jun 3, 2025
dee903c
fix to run against merged array branch
amunra Jun 3, 2025
0417764
fixed TestVsQuestDBMaster CI job
amunra Jun 3, 2025
19c47cb
add tests for `max_name_len` and fix one bug.
kafka1991 Jun 3, 2025
d8843d4
add c-major array layout c api.
kafka1991 Jun 4, 2025
56d171b
optimize strideArrayView performance.
kafka1991 Jun 4, 2025
680bdea
add temp benchmark code.
kafka1991 Jun 5, 2025
dee8aea
revert temp benchmark code.
kafka1991 Jun 5, 2025
28a900f
add flush_and_keep_with_flags
kafka1991 Jun 5, 2025
0a900e9
refactor `strideArrayView` to make iterator more efficient.
kafka1991 Jun 5, 2025
1a8df97
add 3d and 4d iterator tests.
kafka1991 Jun 6, 2025
94db703
fix protocol_version docs and remove warning.
kafka1991 Jun 6, 2025
3c4209f
fix protocol_version docs and remove warning.
kafka1991 Jun 6, 2025
d98a255
introduce low-level c++ api to ingest array.
kafka1991 Jun 6, 2025
892fe9d
introduce low-level c++ api to ingest array.
kafka1991 Jun 6, 2025
8fba187
add array support docs.
kafka1991 Jun 6, 2025
5152445
fix protocol_version docs and remove warning.
kafka1991 Jun 6, 2025
48389d5
change ssize_t to intptr_t
kafka1991 Jun 6, 2025
87e237c
add high level c++ api
kafka1991 Jun 6, 2025
28bd22c
add inline(always) for strideArrayView Iterator
kafka1991 Jun 11, 2025
6201662
Merge remote-tracking branch 'origin/main' into v5
amunra Jun 13, 2025
816698e
Merge remote-tracking branch 'origin/main' into v5
amunra Jun 17, 2025
4a656bc
C++ API improvements
amunra Jun 17, 2025
aa918b4
little refactor c api for array.
kafka1991 Jun 18, 2025
d2b1440
fix c tests
kafka1991 Jun 18, 2025
71373cd
C++ API customization point for arrays
amunra Jun 18, 2025
cf62b6b
cleanup
amunra Jun 18, 2025
c78ea1f
doc clean-up
amunra Jun 19, 2025
d6f2db8
Added C++ array customisation point example
amunra Jun 19, 2025
9f144e4
reformatted example code with clang-format
amunra Jun 19, 2025
415cf86
updated example sections for C and C++
amunra Jun 19, 2025
4781337
Fixed questdb-rs docs.rs not building
amunra Jun 19, 2025
268ce5d
examples summary for questdb-rs
amunra Jun 19, 2025
e03c2c2
dummy test version
amunra Jun 19, 2025
8d7b770
upgraded to maintained bump-my-version tool
amunra Jun 19, 2025
2586e55
fixed one that got missed.. which is why we have this stuff in the fi…
amunra Jun 19, 2025
91b7cf3
fixed up .bumpversion.toml
amunra Jun 19, 2025
8bb4eec
updated version to 5.0.0
amunra Jun 19, 2025
8d6ce96
fixed readme compile issue
amunra Jun 19, 2025
2c43600
Comment issue spotted by Copilot AI
amunra Jun 19, 2025
5af7515
.bumpversion.toml fixup
amunra Jun 20, 2025
80cb3f8
lower limit for MAX_ARRAY_BUFFER_SIZE
amunra Jun 26, 2025
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
28 changes: 0 additions & 28 deletions .bumpversion.cfg

This file was deleted.

49 changes: 49 additions & 0 deletions .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[tool.bumpversion]
current_version = "5.0.0"
commit = false
tag = false

[[tool.bumpversion.files]]
filename = "CMakeLists.txt"
search = "project(c-questdb-client VERSION {current_version})"
replace = "project(c-questdb-client VERSION {new_version})"

[[tool.bumpversion.files]]
filename = "doc/SECURITY.md"
search = "questdb-rs/{current_version}/"
replace = "questdb-rs/{new_version}/"

[[tool.bumpversion.files]]
filename = "questdb-rs/Cargo.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""

[[tool.bumpversion.files]]
filename = "./questdb-rs/README.md"
search = "questdb-rs/{current_version}/"
replace = "questdb-rs/{new_version}/"

[[tool.bumpversion.files]]
filename = "questdb-rs/README.md"
search = "https://github.com/questdb/c-questdb-client/tree/{current_version}/"
replace = "https://github.com/questdb/c-questdb-client/tree/{new_version}/"

[[tool.bumpversion.files]]
filename = "questdb-rs/README.md"
search = "https://github.com/questdb/c-questdb-client/blob/{current_version}/questdb-rs/"
replace = "https://github.com/questdb/c-questdb-client/blob/{new_version}/questdb-rs/"

[[tool.bumpversion.files]]
filename = "questdb-rs-ffi/Cargo.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""

[[tool.bumpversion.files]]
filename = "include/questdb/ingress/line_sender.hpp"
search = "questdb/c++/{current_version}"
replace = "questdb/c++/{new_version}"

[[tool.bumpversion.files]]
filename = ".bumpversion.toml"
search = "current_version = \"{current_version}\""
replace = "current_version = \"{new_version}\""
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.15.0)
project(c-questdb-client VERSION 5.0.0)
set(PROJECT_PRE_RELEASE "rc1")

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
Expand Down Expand Up @@ -107,6 +106,10 @@ if (QUESTDB_TESTS_AND_EXAMPLES)
line_sender_c_example_array_elem_strides
examples/concat.c
examples/line_sender_c_example_array_elem_strides.c)
compile_example(
line_sender_c_example_array_c_major
examples/concat.c
examples/line_sender_c_example_array_c_major.c)
compile_example(
line_sender_c_example_auth
examples/concat.c
Expand Down Expand Up @@ -138,9 +141,15 @@ if (QUESTDB_TESTS_AND_EXAMPLES)
compile_example(
line_sender_cpp_example_array_elem_strides
examples/line_sender_cpp_example_array_elem_strides.cpp)
compile_example(
line_sender_cpp_example_array_custom
examples/line_sender_cpp_example_array_custom.cpp)
compile_example(
line_sender_cpp_example_auth
examples/line_sender_cpp_example_auth.cpp)
compile_example(
line_sender_cpp_example_array_c_major
examples/line_sender_cpp_example_array_c_major.cpp)
compile_example(
line_sender_cpp_example_tls_ca
examples/line_sender_cpp_example_tls_ca.cpp)
Expand Down
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,14 @@ The library supports the following ILP protocol versions.

These protocol versions are supported over both HTTP and TCP.

If you use HTTP, the library will automatically detect the server's
latest supported protocol version and use it. If you use TCP, you can specify the
`protocol_version=N` parameter when constructing the `Sender` object.

| Version | Description | Server Comatibility |
* If you use HTTP and `protocol_version=auto` or unset, the library will
automatically detect the server's
latest supported protocol version and use it (recommended).
* If you use TCP, you can specify the
`protocol_version=N` parameter when constructing the `Sender` object
(TCP defaults to `protocol_version=1`).

| Version | Description | Server Compatibility |
| ------- | ------------------------------------------------------- | --------------------- |
| **1** | Over HTTP it's compatible InfluxDB Line Protocol (ILP) | All QuestDB versions |
| **2** | 64-bit floats sent as binary, adds n-dimentional arrays | 8.4.0+ (2023-10-30) |
Expand Down
7 changes: 7 additions & 0 deletions ci/format_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import sys
sys.dont_write_bytecode = True
import subprocess
import glob

FILES = [
'include/questdb/ingress/line_sender.h',
Expand All @@ -18,6 +19,12 @@
'cpp_test/test_line_sender.cpp',
]

# Also include all examples.
FILES += glob.glob('examples/*.c')
FILES += glob.glob('examples/*.cpp')
FILES += glob.glob('examples/*.h')
FILES += glob.glob('examples/*.hpp')

if __name__ == '__main__':
check_mode = '--check' in sys.argv
command = [
Expand Down
Loading