quasardb 3.14.2.dev1__cp312-cp312-win32.whl → 3.14.2.dev4__cp312-cp312-win32.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of quasardb might be problematic. Click here for more details.

Files changed (96) hide show
  1. quasardb/INSTALL.vcxproj +10 -5
  2. quasardb/__init__.py +33 -4
  3. quasardb/cmake_install.cmake +6 -0
  4. quasardb/date/ALL_BUILD.vcxproj +10 -9
  5. quasardb/date/CMakeFiles/Export/df49adab93b9e0c10c64f72458b31971/dateTargets.cmake +13 -13
  6. quasardb/date/CMakeFiles/generate.stamp.depend +4 -4
  7. quasardb/date/INSTALL.vcxproj +10 -5
  8. quasardb/date/cmake_install.cmake +6 -0
  9. quasardb/date/dateConfigVersion.cmake +0 -5
  10. quasardb/date/dateTargets.cmake +4 -8
  11. quasardb/numpy/__init__.py +58 -10
  12. quasardb/pandas/__init__.py +58 -102
  13. quasardb/pybind11/ALL_BUILD.vcxproj +10 -9
  14. quasardb/pybind11/CMakeFiles/generate.stamp.depend +14 -14
  15. quasardb/pybind11/INSTALL.vcxproj +10 -5
  16. quasardb/pybind11/cmake_install.cmake +6 -0
  17. quasardb/qdb_api.dll +0 -0
  18. quasardb/quasardb.cp312-win32.pyd +0 -0
  19. quasardb/range-v3/ALL_BUILD.vcxproj +10 -9
  20. quasardb/range-v3/CMakeFiles/Export/d94ef200eca10a819b5858b33e808f5b/range-v3-targets.cmake +13 -13
  21. quasardb/range-v3/CMakeFiles/generate.stamp.depend +11 -11
  22. quasardb/range-v3/INSTALL.vcxproj +10 -5
  23. quasardb/range-v3/cmake_install.cmake +42 -0
  24. quasardb/range-v3/range-v3-config-version.cmake +0 -5
  25. quasardb/range-v3/range-v3-config.cmake +4 -8
  26. quasardb/range-v3/range.v3.headers.vcxproj +10 -9
  27. {quasardb-3.14.2.dev1.dist-info → quasardb-3.14.2.dev4.dist-info}/METADATA +15 -10
  28. quasardb-3.14.2.dev4.dist-info/RECORD +54 -0
  29. {quasardb-3.14.2.dev1.dist-info → quasardb-3.14.2.dev4.dist-info}/WHEEL +1 -1
  30. quasardb/CMakeLists.txt +0 -510
  31. quasardb/batch_column.hpp +0 -80
  32. quasardb/batch_inserter.hpp +0 -248
  33. quasardb/blob.hpp +0 -150
  34. quasardb/cluster.cpp +0 -89
  35. quasardb/cluster.hpp +0 -551
  36. quasardb/concepts.hpp +0 -278
  37. quasardb/continuous.cpp +0 -149
  38. quasardb/continuous.hpp +0 -106
  39. quasardb/convert/array.hpp +0 -282
  40. quasardb/convert/point.hpp +0 -330
  41. quasardb/convert/range.hpp +0 -282
  42. quasardb/convert/unicode.hpp +0 -598
  43. quasardb/convert/util.hpp +0 -22
  44. quasardb/convert/value.hpp +0 -711
  45. quasardb/convert.hpp +0 -38
  46. quasardb/detail/qdb_resource.hpp +0 -129
  47. quasardb/detail/ts_column.hpp +0 -224
  48. quasardb/direct_blob.hpp +0 -108
  49. quasardb/direct_handle.hpp +0 -83
  50. quasardb/direct_integer.hpp +0 -94
  51. quasardb/dispatch.hpp +0 -157
  52. quasardb/double.hpp +0 -87
  53. quasardb/entry.hpp +0 -273
  54. quasardb/error.hpp +0 -318
  55. quasardb/handle.cpp +0 -29
  56. quasardb/handle.hpp +0 -98
  57. quasardb/integer.hpp +0 -88
  58. quasardb/logger.cpp +0 -106
  59. quasardb/logger.hpp +0 -228
  60. quasardb/masked_array.hpp +0 -651
  61. quasardb/metrics.cpp +0 -103
  62. quasardb/metrics.hpp +0 -112
  63. quasardb/module.cpp +0 -76
  64. quasardb/module.hpp +0 -24
  65. quasardb/node.hpp +0 -123
  66. quasardb/numpy.cpp +0 -6
  67. quasardb/numpy.hpp +0 -489
  68. quasardb/object_tracker.hpp +0 -283
  69. quasardb/options.hpp +0 -244
  70. quasardb/perf.hpp +0 -336
  71. quasardb/pytypes.hpp +0 -221
  72. quasardb/query.cpp +0 -420
  73. quasardb/query.hpp +0 -92
  74. quasardb/reader/ts_row.hpp +0 -281
  75. quasardb/reader/ts_value.hpp +0 -245
  76. quasardb/remove_cvref.hpp +0 -31
  77. quasardb/string.hpp +0 -160
  78. quasardb/table.cpp +0 -289
  79. quasardb/table.hpp +0 -325
  80. quasardb/table_reader.hpp +0 -220
  81. quasardb/tag.hpp +0 -77
  82. quasardb/timestamp.hpp +0 -97
  83. quasardb/traits.hpp +0 -619
  84. quasardb/ts_iterator.hpp +0 -193
  85. quasardb/utils/blob_deque.hpp +0 -96
  86. quasardb/utils/ostream.hpp +0 -17
  87. quasardb/utils/permutation.hpp +0 -50
  88. quasardb/utils/stable_sort.hpp +0 -25
  89. quasardb/utils/unzip_view.hpp +0 -89
  90. quasardb/utils.cpp +0 -28
  91. quasardb/utils.hpp +0 -174
  92. quasardb/writer.cpp +0 -534
  93. quasardb/writer.hpp +0 -396
  94. quasardb-3.14.2.dev1.dist-info/RECORD +0 -118
  95. {quasardb-3.14.2.dev1.dist-info → quasardb-3.14.2.dev4.dist-info}/LICENSE.md +0 -0
  96. {quasardb-3.14.2.dev1.dist-info → quasardb-3.14.2.dev4.dist-info}/top_level.txt +0 -0
quasardb/CMakeLists.txt DELETED
@@ -1,510 +0,0 @@
1
- cmake_minimum_required(VERSION 3.9.4)
2
- project(quasardb)
3
- set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
4
- set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
5
- set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
6
- set(CMAKE_VERBOSE_MAKEFILE FALSE)
7
-
8
- if(APPLE)
9
- # Robustly get the SDK path using xcrun.
10
- execute_process(
11
- COMMAND xcrun --sdk macosx --show-sdk-path
12
- OUTPUT_VARIABLE SDK_PATH
13
- COMMAND_ERROR_IS_FATAL ANY
14
- )
15
- string(STRIP "${SDK_PATH}" CMAKE_OSX_SYSROOT)
16
- endif()
17
-
18
- include(CheckIPOSupported)
19
-
20
- option(QDB_LINK_STATIC_LIB "Link qdb_api_static instead of dynamic qdb_api." OFF)
21
- option(QDB_TESTS_ENABLED "Build quasardb test suite?" OFF)
22
-
23
- set(PACKAGE_NAME quasardb)
24
-
25
- if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm"
26
- OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64"
27
- OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "cortex"
28
- OR CMAKE_GENERATOR MATCHES "ARM"
29
- OR CMAKE_GENERATOR_PLATFORM MATCHES "ARM")
30
- set(QDB_CPU_IS_ARM ON)
31
- elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86"
32
- OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64"
33
- OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686"
34
- OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "AMD64"
35
- OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "amd64")
36
- set(QDB_CPU_IS_X86 ON)
37
- else()
38
- message(FATAL_ERROR "Unknown CMAKE_SYSTEM_PROCESSOR = ${CMAKE_SYSTEM_PROCESSOR}")
39
- endif()
40
-
41
- ###
42
- #
43
- # Discover QuasarDB api location, set QDB_API_DIR accordingly.
44
- #
45
- ###
46
-
47
- set(QDB_API_NAME qdb_api)
48
-
49
- message(STATUS "[qdb-api-python] Using qdb api name ${QDB_API_NAME}")
50
-
51
- if(DEFINED ENV{QDB_API_PATH})
52
- message(STATUS "[qdb-api-python] Getting qdb API from environment variable QDB_API_PATH: $ENV{QDB_API_PATH}")
53
- set(QDB_API_DIR $ENV{QDB_API_PATH})
54
- else()
55
- set(QDB_API_DIR "${CMAKE_SOURCE_DIR}/../qdb")
56
- endif()
57
-
58
- find_library(
59
- QDB_API_LIB
60
- NAMES ${QDB_API_NAME}
61
- PATHS ${QDB_API_DIR}/lib
62
- NO_DEFAULT_PATH)
63
-
64
- if(QDB_API_LIB)
65
- if(NOT IS_DIRECTORY "${QDB_API_DIR}/include")
66
- message(FATAL_ERROR "[qdb-api-python] Please unzip qdb c-api into ${QDB_API_DIR}")
67
- endif()
68
- include_directories(SYSTEM ${QDB_API_DIR}/include)
69
- else()
70
- find_library(QDB_API_LIB NAMES ${QDB_API_NAME})
71
- endif()
72
-
73
- message(STATUS "[qdb-api-python] Resolved QDB API library location: ${QDB_API_LIB}")
74
-
75
- if(NOT QDB_API_LIB)
76
- message(
77
- FATAL_ERROR
78
- "\n\
79
- ************************************************************************** \n\
80
- \n\
81
- Unable to locate QuasarDB library: please install the QuasarDB API library. \n\
82
- \n\
83
- For more information, please consult the manual: \n\
84
- https://doc.quasardb.net/master/api/c.html. \n\
85
- \n\
86
- **************************************************************************"
87
- )
88
- endif()
89
-
90
-
91
-
92
-
93
-
94
- ###
95
- #
96
- # High-level compiler/OS-independent cmake options
97
- #
98
- ###
99
-
100
- set(CMAKE_CXX_STANDARD 20)
101
- set(CMAKE_CXX_STANDARD_REQUIRED ON)
102
-
103
-
104
- ###
105
- #
106
- # Probe compiler/OS
107
- #
108
- ###
109
-
110
- if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
111
- message(STATUS "[qdb-api-python] Detected: clang compiler")
112
- set(CLANG TRUE)
113
- elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
114
- message(STATUS "[qdb-api-python] Detected: gcc")
115
- set(GNU TRUE)
116
- elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
117
- message(STATUS "[qdb-api-python] Detected: msvc")
118
- set(MSVC TRUE)
119
- set(WINDOWS TRUE)
120
-
121
- if(CMAKE_SIZEOF_VOID_P EQUAL 8)
122
- message(STATUS "[qdb-api-python] Detected: win64")
123
- set(WIN64 TRUE)
124
- elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
125
- message(STATUS "[qdb-api-python] Detected: win32")
126
- set(WIN32 TRUE)
127
- endif()
128
- endif()
129
-
130
- if (CMAKE_HOST_APPLE)
131
- message(STATUS "[qdb-api-python] Detected: apple host")
132
- set(APPLE TRUE)
133
- elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
134
- message(STATUS "[qdb-api-python] Detected: freebsd")
135
- set(FREEEBSD TRUE)
136
- elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
137
- message(STATUS "[qdb-api-python] Detected: linux")
138
- set(LINUX TRUE)
139
- endif()
140
-
141
-
142
- ###
143
- #
144
- # Compile options based on compiler/OS
145
- #
146
- ###
147
-
148
- if(CLANG OR GNU)
149
- if(CLANG AND NOT APPLE)
150
- # Clang + Ninja eats colors
151
- add_compile_options(
152
- -fdiagnostics-color=always
153
- -ftemplate-backtrace-limit=0
154
- -fmacro-backtrace-limit=0)
155
- endif()
156
-
157
- if (LINUX)
158
- add_compile_options(
159
- -Wno-register
160
- -Wall
161
- -fconcepts-diagnostics-depth=3
162
-
163
- $<$<CONFIG:Debug>:-Og>
164
- $<$<CONFIG:Release>:-O3>
165
- )
166
-
167
- # Can we perhaps make different builds, one for core2 and another
168
- # for haswell?
169
-
170
- if(QDB_CPU_IS_X86)
171
- add_compile_options(-march=core2)
172
- endif()
173
- endif()
174
-
175
- if (CLANG)
176
- add_compile_options(
177
- -fcolor-diagnostics # force color output on ninja
178
- -fmacro-backtrace-limit=0
179
- $<$<CONFIG:Release>:-O3>
180
- $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:-g>
181
- $<$<CONFIG:Release>:-ftree-vectorize>)
182
- elseif (GNU)
183
- add_compile_options(
184
- -fdata-sections
185
- -ffunction-sections
186
- -fno-stack-protector
187
-
188
- -fnon-call-exceptions
189
- -ftrack-macro-expansion=0
190
- $<$<CONFIG:Release>:-O3>
191
- $<$<CONFIG:Debug>:-Og>
192
- $<$<CONFIG:Debug>:-fno-eliminate-unused-debug-types>
193
- $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:-ggdb>)
194
- endif()
195
-
196
-
197
- elseif (MSVC)
198
- message(STATUS "[qdb-api-python] Detected: msvc")
199
- add_definitions(/DSTATIC_LINKED)
200
- add_definitions(/D_CRT_SECURE_NO_WARNINGS=1)
201
-
202
- add_compile_options(
203
- /volatile:iso
204
- /Gy
205
- /Zc:wchar_t
206
- /wd5033
207
- /MT
208
- /EHa
209
- /GR
210
- /GF
211
-
212
- $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:/Zi> # Produces a program database (PDB) that contains type information and symbolic debugging information for use with the debugger
213
-
214
- # Debug: Turns off all optimizations in the program and speeds compilation.
215
- # Non-debug: Selects full optimization.
216
- $<IF:$<CONFIG:Debug>,/Od,/Ox>
217
- $<$<CONFIG:Debug>:/RTC1> # Enable the run-time error checks feature, in conjunction with the runtime_checks pragma.
218
-
219
- $<$<NOT:$<CONFIG:Debug>>:/Oi> # Replaces some function calls with intrinsic or otherwise special forms of the function that help your application run faster.
220
- $<$<NOT:$<CONFIG:Debug>>:/Ot> # Maximizes the speed of EXEs and DLLs by instructing the compiler to favor speed over size.
221
- $<$<NOT:$<CONFIG:Debug>>:/Oy> # Suppresses creation of frame pointers on the call stack.
222
- $<$<NOT:$<CONFIG:Debug>>:/GS-> # Suppresses Buffer Security Check
223
-
224
-
225
- )
226
- if(QDB_CPU_IS_X86)
227
- add_compile_options(
228
- # Enable AVX as we target Core2 and later
229
- /arch:AVX
230
- )
231
- endif()
232
- endif()
233
-
234
- ###
235
- #
236
- # Link options based on compiler/OS
237
- #
238
- ###
239
-
240
-
241
- if (CLANG)
242
- if(QDB_LINKER)
243
- if(QDB_LINKER STREQUAL "lld")
244
- if(APPLE)
245
- message(STATUS "[qdb-api-python] Detected: clang + lld + apple")
246
- add_link_options(--ld-path=ld64.lld)
247
- elseif(WIN32)
248
- message(STATUS "[qdb-api-python] Detected: clang + lld + win32")
249
- add_link_options(--ld-path=lld-link)
250
- else()
251
- message(STATUS "[qdb-api-python] Detected: clang + lld (other)")
252
- add_link_options(--ld-path=ld.lld)
253
- endif()
254
- else()
255
- message(STATUS "[qdb-api-python] Detected: clang + qdb_linker (other)")
256
- add_link_options(--ld-path=${QDB_LINKER})
257
- endif()
258
- endif()
259
-
260
- # clang + anything not apple
261
- if(NOT APPLE)
262
- message(STATUS "[qdb-api-python] Detected: clang + not apple")
263
- add_link_options(
264
- -Qunused-arguments
265
- -Wl,--gc-sections)
266
- endif()
267
- endif()
268
-
269
- ###
270
- #
271
- # Third-party libraries
272
- #
273
- ###
274
-
275
- message(STATUS "[qdb-api-python] Including thirdparty libraries with binary directory ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
276
- include_directories(SYSTEM ../thirdparty/date/include)
277
- include_directories(SYSTEM ../thirdparty/range-v3/include)
278
-
279
- add_subdirectory(../thirdparty/ ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
280
-
281
- include_directories(SYSTEM qdb/include)
282
- include_directories(${CMAKE_SOURCE_DIR})
283
- include_directories(../quasardb/)
284
-
285
-
286
- #
287
- # step 2: copy the libraries
288
- #
289
- # Based on the OS, we copy the relevant files into our output directory. This
290
- # matches the `extdir` as defined in setup.py's CMakeBuild.build_extension().
291
-
292
- # We need to detect the _actual_ location of the qdb api lib file, lest we
293
- # accidentally copy the symlink instead of the file.
294
- get_filename_component(QDB_API_LIB_REAL ${QDB_API_LIB} REALPATH)
295
- get_filename_component(QDB_API_LIB_REAL_NAME ${QDB_API_LIB_REAL} NAME)
296
-
297
- if(NOT QDB_LINK_STATIC_LIB)
298
- set(FILES_TO_COPY)
299
-
300
- if(WIN32)
301
- list(APPEND FILES_TO_COPY "${QDB_API_DIR}/bin/${QDB_API_NAME}.dll")
302
- elseif(APPLE)
303
- file(
304
- GLOB SO_LIBS
305
- LIST_DIRECTORIES false
306
- "${QDB_API_DIR}/lib/libc[x+][x+]*.dylib")
307
-
308
- list(APPEND FILES_TO_COPY "${QDB_API_LIB_REAL}" ${SO_LIBS})
309
- elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
310
- file(
311
- GLOB SO_LIBS
312
- LIST_DIRECTORIES false
313
- "${QDB_API_DIR}/lib/libc[x+][x+]*.so*")
314
-
315
- list(APPEND FILES_TO_COPY "${QDB_API_LIB_REAL}" ${SO_LIBS})
316
- else()
317
- list(APPEND FILES_TO_COPY "${QDB_API_LIB_REAL}")
318
- # Is there a case where the C API library is not called libqdb_api.so?
319
- # file(RENAME "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${QDB_API_LIB_REAL_NAME}"
320
- # "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libqdb_api.so")
321
- endif()
322
-
323
- message(STATUS "[qdb-api-python] Files to copy: ${FILES_TO_COPY}")
324
- file(COPY ${FILES_TO_COPY} DESTINATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
325
-
326
- # for Apple we need to change the id otherwise we won't be able to load the
327
- # extension
328
- if(APPLE)
329
- execute_process(COMMAND install_name_tool -id "@loader_path/lib${QDB_API_NAME}.dylib"
330
- ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/lib${QDB_API_NAME}.dylib)
331
- endif()
332
- endif()
333
-
334
- set(QDB_FILES
335
- batch_inserter.hpp
336
- blob.hpp
337
- cluster.hpp
338
- cluster.cpp
339
- concepts.hpp
340
- continuous.cpp
341
- continuous.hpp
342
- convert.hpp
343
- double.hpp
344
- error.hpp
345
- entry.hpp
346
- handle.hpp
347
- handle.cpp
348
- logger.hpp
349
- logger.cpp
350
- masked_array.hpp
351
- metrics.hpp
352
- metrics.cpp
353
- module.hpp
354
- module.cpp
355
- node.hpp
356
- numpy.hpp
357
- numpy.cpp
358
- object_tracker.hpp
359
- options.hpp
360
- query.hpp
361
- query.cpp
362
- string.hpp
363
- table.cpp
364
- table.hpp
365
- table_reader.hpp
366
- tag.hpp
367
- timestamp.hpp
368
- traits.hpp
369
- utils.cpp
370
- utils.hpp
371
- writer.cpp
372
- writer.hpp
373
- detail/qdb_resource.hpp
374
- detail/ts_column.hpp
375
- reader/ts_row.hpp
376
- reader/ts_value.hpp
377
- utils/blob_deque.hpp
378
- utils/ostream.hpp
379
- utils/permutation.hpp
380
- utils/stable_sort.hpp
381
- )
382
-
383
- set(QDB_TEST_FILES "")
384
-
385
- if(QDB_TESTS_ENABLED)
386
- message(WARNING "\
387
- ------------------------------------------------------------------ \
388
- [qdb-api-python] Tests enabled -- do not enable for release builds \
389
- ------------------------------------------------------------------ \ ")
390
- set(QDB_TEST_FILES
391
-
392
- ../tests/conftest.cpp
393
- ../tests/conftest.hpp
394
- ../tests/test_convert.cpp)
395
- endif()
396
-
397
- # step 3: build
398
- pybind11_add_module(
399
- quasardb
400
-
401
- ${QDB_FILES}
402
- ${QDB_TEST_FILES})
403
-
404
- target_compile_definitions(quasardb PUBLIC QDB_PY_VERSION="${QDB_PY_VERSION}")
405
- if(QDB_LINK_STATIC_LIB)
406
- add_definitions(-DQDB_API_STATIC_LINK=1)
407
-
408
- set(LIB_DIR "${QDB_API_DIR}/lib_static")
409
- if(WIN32)
410
- set(LIB_PREFIX "")
411
- set(LIB_SUFFIX "$<$<CONFIG:Debug>:d>.lib")
412
- else()
413
- set(LIB_PREFIX "lib")
414
- set(LIB_SUFFIX "$<$<CONFIG:Debug>:d>.a")
415
- endif()
416
-
417
- target_link_libraries(quasardb
418
- PUBLIC
419
- "${LIB_DIR}/${LIB_PREFIX}qdb_api_static${LIB_SUFFIX}"
420
- "${LIB_DIR}/${LIB_PREFIX}qdb_query_client${LIB_SUFFIX}"
421
- "${LIB_DIR}/${LIB_PREFIX}qdb_client${LIB_SUFFIX}"
422
- "${LIB_DIR}/${LIB_PREFIX}qdb_aggregation${LIB_SUFFIX}"
423
- "${LIB_DIR}/${LIB_PREFIX}qdb_chord${LIB_SUFFIX}"
424
- "${LIB_DIR}/${LIB_PREFIX}qdb_network${LIB_SUFFIX}"
425
- "${LIB_DIR}/${LIB_PREFIX}qdb_protocol${LIB_SUFFIX}"
426
- "${LIB_DIR}/${LIB_PREFIX}qdb_perf${LIB_SUFFIX}"
427
- "${LIB_DIR}/${LIB_PREFIX}qdb_persistence${LIB_SUFFIX}"
428
- "${LIB_DIR}/${LIB_PREFIX}qdb_application${LIB_SUFFIX}"
429
- "${LIB_DIR}/${LIB_PREFIX}rocksdb${LIB_SUFFIX}"
430
- "${LIB_DIR}/${LIB_PREFIX}zlibstatic${LIB_SUFFIX}"
431
- "${LIB_DIR}/${LIB_PREFIX}qdb_query${LIB_SUFFIX}"
432
- "${LIB_DIR}/${LIB_PREFIX}geohash${LIB_SUFFIX}"
433
- "${LIB_DIR}/${LIB_PREFIX}qdb_timeseries${LIB_SUFFIX}"
434
- "${LIB_DIR}/${LIB_PREFIX}qdb_query_dsl${LIB_SUFFIX}"
435
- "${LIB_DIR}/${LIB_PREFIX}arrow${LIB_SUFFIX}"
436
- "${LIB_DIR}/${LIB_PREFIX}qdb_metadata${LIB_SUFFIX}"
437
- "${LIB_DIR}/${LIB_PREFIX}qdb_config${LIB_SUFFIX}"
438
- "${LIB_DIR}/${LIB_PREFIX}boost_program_options${LIB_SUFFIX}"
439
- "${LIB_DIR}/${LIB_PREFIX}qdb_serialization${LIB_SUFFIX}"
440
- "${LIB_DIR}/${LIB_PREFIX}qdb_compression${LIB_SUFFIX}"
441
- "${LIB_DIR}/${LIB_PREFIX}qdb_serialization${LIB_SUFFIX}"
442
- "${LIB_DIR}/${LIB_PREFIX}qdb_compression${LIB_SUFFIX}"
443
- "${LIB_DIR}/${LIB_PREFIX}qdb_auth${LIB_SUFFIX}"
444
- "${LIB_DIR}/${LIB_PREFIX}qdb_crypto${LIB_SUFFIX}"
445
- "${LIB_DIR}/${LIB_PREFIX}qdb_json${LIB_SUFFIX}"
446
- "${LIB_DIR}/${LIB_PREFIX}qdb_id${LIB_SUFFIX}"
447
- "${LIB_DIR}/${LIB_PREFIX}skein${LIB_SUFFIX}"
448
- "${LIB_DIR}/${LIB_PREFIX}qdb_network_resolver${LIB_SUFFIX}"
449
- "${LIB_DIR}/${LIB_PREFIX}libsodium${LIB_SUFFIX}"
450
- "${LIB_DIR}/${LIB_PREFIX}qdb_io${LIB_SUFFIX}"
451
- "${LIB_DIR}/${LIB_PREFIX}qdb_log${LIB_SUFFIX}"
452
- "${LIB_DIR}/${LIB_PREFIX}lz4${LIB_SUFFIX}"
453
- "${LIB_DIR}/${LIB_PREFIX}qdb_sys${LIB_SUFFIX}"
454
- "${LIB_DIR}/${LIB_PREFIX}qdb_time${LIB_SUFFIX}"
455
- "${LIB_DIR}/${LIB_PREFIX}brigand${LIB_SUFFIX}"
456
- "${LIB_DIR}/${LIB_PREFIX}qdb_util${LIB_SUFFIX}"
457
- "${LIB_DIR}/${LIB_PREFIX}boost_filesystem${LIB_SUFFIX}"
458
- "${LIB_DIR}/${LIB_PREFIX}fmt${LIB_SUFFIX}"
459
- "${LIB_DIR}/${LIB_PREFIX}robin_hood${LIB_SUFFIX}"
460
- "${LIB_DIR}/${LIB_PREFIX}asio${LIB_SUFFIX}"
461
- "${LIB_DIR}/${LIB_PREFIX}xxhash${LIB_SUFFIX}"
462
- "${LIB_DIR}/${LIB_PREFIX}qdb_memory${LIB_SUFFIX}"
463
- "${LIB_DIR}/${LIB_PREFIX}tbbmalloc${LIB_SUFFIX}"
464
- "${LIB_DIR}/${LIB_PREFIX}tbb${LIB_SUFFIX}"
465
- "${LIB_DIR}/${LIB_PREFIX}qdb_version${LIB_SUFFIX}"
466
- )
467
-
468
- if(WIN32)
469
- target_link_libraries(quasardb
470
- PUBLIC
471
- "${LIB_DIR}/${LIB_PREFIX}zstd_static${LIB_SUFFIX}"
472
- )
473
- else()
474
- target_link_libraries(quasardb
475
- PUBLIC
476
- "${LIB_DIR}/${LIB_PREFIX}boost_system${LIB_SUFFIX}"
477
- "${LIB_DIR}/${LIB_PREFIX}zstd${LIB_SUFFIX}"
478
- )
479
- endif()
480
- else()
481
- target_link_libraries(quasardb PUBLIC ${QDB_API_LIB})
482
- endif()
483
-
484
- if(CMAKE_COMPILER_IS_GNUCXX)
485
- target_link_options(
486
- quasardb
487
- PUBLIC
488
- -static-libgcc
489
- -static-libstdc++
490
- )
491
- endif()
492
-
493
- if(APPLE)
494
- set_target_properties(quasardb PROPERTIES INSTALL_RPATH "@loader_path")
495
- else()
496
- set_target_properties(quasardb PROPERTIES INSTALL_RPATH "$ORIGIN/")
497
- endif()
498
-
499
- if (CLANG OR GNU)
500
- if (NOT APPLE)
501
- check_ipo_supported(RESULT LTO_SUPPORTED OUTPUT error)
502
- if (LTO_SUPPORTED)
503
- message(STATUS "[qdb-api-python] Enabling LTO")
504
- set_target_properties(quasardb PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
505
- else()
506
- message(STATUS "[qdb-api-python] Disabling LTO")
507
- set_target_properties(quasardb PROPERTIES INTERPROCEDURAL_OPTIMIZATION FALSE)
508
- endif()
509
- endif()
510
- endif()
quasardb/batch_column.hpp DELETED
@@ -1,80 +0,0 @@
1
- /*
2
- *
3
- * Official Python API
4
- *
5
- * Copyright (c) 2009-2024, quasardb SAS. All rights reserved.
6
- * All rights reserved.
7
- *
8
- * Redistribution and use in source and binary forms, with or without
9
- * modification, are permitted provided that the following conditions are met:
10
- *
11
- * * Redistributions of source code must retain the above copyright
12
- * notice, this list of conditions and the following disclaimer.
13
- * * Redistributions in binary form must reproduce the above copyright
14
- * notice, this list of conditions and the following disclaimer in the
15
- * documentation and/or other materials provided with the distribution.
16
- * * Neither the name of quasardb nor the names of its contributors may
17
- * be used to endorse or promote products derived from this software
18
- * without specific prior written permission.
19
- *
20
- * THIS SOFTWARE IS PROVIDED BY QUASARDB AND CONTRIBUTORS ``AS IS'' AND ANY
21
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
- * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
24
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
- */
31
- #pragma once
32
-
33
- #include "table.hpp"
34
- #include <qdb/ts.h>
35
- #include <pybind11/pybind11.h>
36
- #include <string>
37
-
38
- namespace qdb
39
- {
40
- struct batch_column_info
41
- {
42
- batch_column_info() = default;
43
- batch_column_info(
44
- const std::string & ts_name, const std::string & col_name, qdb_size_t size_hint = 0)
45
- : timeseries{ts_name}
46
- , column{col_name}
47
- , elements_count_hint{size_hint}
48
- {}
49
-
50
- operator qdb_ts_batch_column_info_t() const noexcept
51
- {
52
- qdb_ts_batch_column_info_t res;
53
-
54
- res.timeseries = timeseries.c_str();
55
- res.column = column.c_str();
56
- res.elements_count_hint = elements_count_hint;
57
- return res;
58
- }
59
-
60
- std::string timeseries;
61
- std::string column;
62
- qdb_size_t elements_count_hint{0};
63
- };
64
-
65
- template <typename Module>
66
- static inline void register_batch_column(Module & m)
67
- {
68
- namespace py = pybind11;
69
-
70
- py::class_<qdb::batch_column_info>{m, "BatchColumnInfo"} //
71
- .def(py::init<const std::string &, const std::string &, qdb_size_t>(), //
72
- py::arg("ts_name"), //
73
- py::arg("col_name"), //
74
- py::arg("size_hint") = 0) //
75
- .def_readwrite("timeseries", &qdb::batch_column_info::timeseries) //
76
- .def_readwrite("column", &qdb::batch_column_info::column) //
77
- .def_readwrite("elements_count_hint", &qdb::batch_column_info::elements_count_hint); //
78
- }
79
-
80
- } // namespace qdb