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