quasardb 3.14.2.dev7__cp312-cp312-manylinux_2_26_x86_64.manylinux_2_28_x86_64.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 (69) hide show
  1. quasardb/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  2. quasardb/CMakeFiles/progress.marks +1 -0
  3. quasardb/Makefile +189 -0
  4. quasardb/__init__.py +140 -0
  5. quasardb/__init__.pyi +72 -0
  6. quasardb/cmake_install.cmake +58 -0
  7. quasardb/date/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  8. quasardb/date/CMakeFiles/Export/b76006b2b7125baf1b0b4d4ca4db82bd/dateTargets.cmake +108 -0
  9. quasardb/date/CMakeFiles/progress.marks +1 -0
  10. quasardb/date/Makefile +189 -0
  11. quasardb/date/cmake_install.cmake +81 -0
  12. quasardb/date/dateConfigVersion.cmake +65 -0
  13. quasardb/date/dateTargets.cmake +63 -0
  14. quasardb/extensions/__init__.py +8 -0
  15. quasardb/extensions/writer.py +191 -0
  16. quasardb/firehose.py +103 -0
  17. quasardb/libqdb_api.so +0 -0
  18. quasardb/numpy/__init__.py +1045 -0
  19. quasardb/pandas/__init__.py +533 -0
  20. quasardb/pool.py +311 -0
  21. quasardb/pybind11/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  22. quasardb/pybind11/CMakeFiles/progress.marks +1 -0
  23. quasardb/pybind11/Makefile +189 -0
  24. quasardb/pybind11/cmake_install.cmake +50 -0
  25. quasardb/quasardb/__init__.pyi +97 -0
  26. quasardb/quasardb/_batch_column.pyi +5 -0
  27. quasardb/quasardb/_batch_inserter.pyi +30 -0
  28. quasardb/quasardb/_blob.pyi +16 -0
  29. quasardb/quasardb/_cluster.pyi +100 -0
  30. quasardb/quasardb/_continuous.pyi +16 -0
  31. quasardb/quasardb/_double.pyi +7 -0
  32. quasardb/quasardb/_entry.pyi +60 -0
  33. quasardb/quasardb/_error.pyi +15 -0
  34. quasardb/quasardb/_integer.pyi +7 -0
  35. quasardb/quasardb/_node.pyi +26 -0
  36. quasardb/quasardb/_options.pyi +105 -0
  37. quasardb/quasardb/_perf.pyi +5 -0
  38. quasardb/quasardb/_properties.pyi +5 -0
  39. quasardb/quasardb/_query.pyi +2 -0
  40. quasardb/quasardb/_reader.pyi +9 -0
  41. quasardb/quasardb/_retry.pyi +16 -0
  42. quasardb/quasardb/_string.pyi +12 -0
  43. quasardb/quasardb/_table.pyi +125 -0
  44. quasardb/quasardb/_tag.pyi +5 -0
  45. quasardb/quasardb/_timestamp.pyi +9 -0
  46. quasardb/quasardb/_writer.pyi +111 -0
  47. quasardb/quasardb/metrics/__init__.pyi +20 -0
  48. quasardb/quasardb.cpython-312-x86_64-linux-gnu.so +0 -0
  49. quasardb/range-v3/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  50. quasardb/range-v3/CMakeFiles/Export/48a02d54b5e9e60c30c5f249b431a911/range-v3-targets.cmake +128 -0
  51. quasardb/range-v3/CMakeFiles/progress.marks +1 -0
  52. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/DependInfo.cmake +22 -0
  53. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/build.make +86 -0
  54. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/cmake_clean.cmake +5 -0
  55. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/compiler_depend.make +2 -0
  56. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/compiler_depend.ts +2 -0
  57. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/progress.make +1 -0
  58. quasardb/range-v3/Makefile +204 -0
  59. quasardb/range-v3/cmake_install.cmake +93 -0
  60. quasardb/range-v3/include/range/v3/version.hpp +24 -0
  61. quasardb/range-v3/range-v3-config-version.cmake +83 -0
  62. quasardb/range-v3/range-v3-config.cmake +80 -0
  63. quasardb/stats.py +358 -0
  64. quasardb/table_cache.py +56 -0
  65. quasardb-3.14.2.dev7.dist-info/METADATA +41 -0
  66. quasardb-3.14.2.dev7.dist-info/RECORD +69 -0
  67. quasardb-3.14.2.dev7.dist-info/WHEEL +6 -0
  68. quasardb-3.14.2.dev7.dist-info/licenses/LICENSE.md +11 -0
  69. quasardb-3.14.2.dev7.dist-info/top_level.txt +1 -0
quasardb/date/Makefile ADDED
@@ -0,0 +1,189 @@
1
+ # CMAKE generated file: DO NOT EDIT!
2
+ # Generated by "Unix Makefiles" Generator, CMake Version 4.1
3
+
4
+ # Default target executed when no arguments are given to make.
5
+ default_target: all
6
+ .PHONY : default_target
7
+
8
+ # Allow only one "make -f Makefile2" at a time, but pass parallelism.
9
+ .NOTPARALLEL:
10
+
11
+ #=============================================================================
12
+ # Special targets provided by cmake.
13
+
14
+ # Disable implicit rules so canonical targets will work.
15
+ .SUFFIXES:
16
+
17
+ # Disable VCS-based implicit rules.
18
+ % : %,v
19
+
20
+ # Disable VCS-based implicit rules.
21
+ % : RCS/%
22
+
23
+ # Disable VCS-based implicit rules.
24
+ % : RCS/%,v
25
+
26
+ # Disable VCS-based implicit rules.
27
+ % : SCCS/s.%
28
+
29
+ # Disable VCS-based implicit rules.
30
+ % : s.%
31
+
32
+ .SUFFIXES: .hpux_make_needs_suffix_list
33
+
34
+ # Command-line flag to silence nested $(MAKE).
35
+ $(VERBOSE)MAKESILENT = -s
36
+
37
+ #Suppress display of executed commands.
38
+ $(VERBOSE).SILENT:
39
+
40
+ # A target that is always out of date.
41
+ cmake_force:
42
+ .PHONY : cmake_force
43
+
44
+ #=============================================================================
45
+ # Set environment variables for the build.
46
+
47
+ # The shell in which to execute make rules.
48
+ SHELL = /bin/sh
49
+
50
+ # The CMake executable.
51
+ CMAKE_COMMAND = /home/teamcity/buildAgent/temp/buildTmp/build-env-4uhi3thc/lib/python3.12/site-packages/cmake/data/bin/cmake
52
+
53
+ # The command to remove a file.
54
+ RM = /home/teamcity/buildAgent/temp/buildTmp/build-env-4uhi3thc/lib/python3.12/site-packages/cmake/data/bin/cmake -E rm -f
55
+
56
+ # Escaping for special characters.
57
+ EQUALS = =
58
+
59
+ # The top-level source directory on which CMake was run.
60
+ CMAKE_SOURCE_DIR = /home/teamcity/buildAgent/work/938b0bdf6727d1ad/quasardb
61
+
62
+ # The top-level build directory on which CMake was run.
63
+ CMAKE_BINARY_DIR = /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-x86_64-cpython-312
64
+
65
+ #=============================================================================
66
+ # Targets provided globally by CMake.
67
+
68
+ # Special rule for the target edit_cache
69
+ edit_cache:
70
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "No interactive CMake dialog available..."
71
+ /home/teamcity/buildAgent/temp/buildTmp/build-env-4uhi3thc/lib/python3.12/site-packages/cmake/data/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
72
+ .PHONY : edit_cache
73
+
74
+ # Special rule for the target edit_cache
75
+ edit_cache/fast: edit_cache
76
+ .PHONY : edit_cache/fast
77
+
78
+ # Special rule for the target rebuild_cache
79
+ rebuild_cache:
80
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..."
81
+ /home/teamcity/buildAgent/temp/buildTmp/build-env-4uhi3thc/lib/python3.12/site-packages/cmake/data/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
82
+ .PHONY : rebuild_cache
83
+
84
+ # Special rule for the target rebuild_cache
85
+ rebuild_cache/fast: rebuild_cache
86
+ .PHONY : rebuild_cache/fast
87
+
88
+ # Special rule for the target list_install_components
89
+ list_install_components:
90
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Unspecified\""
91
+ .PHONY : list_install_components
92
+
93
+ # Special rule for the target list_install_components
94
+ list_install_components/fast: list_install_components
95
+ .PHONY : list_install_components/fast
96
+
97
+ # Special rule for the target install
98
+ install: preinstall
99
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
100
+ /home/teamcity/buildAgent/temp/buildTmp/build-env-4uhi3thc/lib/python3.12/site-packages/cmake/data/bin/cmake -P cmake_install.cmake
101
+ .PHONY : install
102
+
103
+ # Special rule for the target install
104
+ install/fast: preinstall/fast
105
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
106
+ /home/teamcity/buildAgent/temp/buildTmp/build-env-4uhi3thc/lib/python3.12/site-packages/cmake/data/bin/cmake -P cmake_install.cmake
107
+ .PHONY : install/fast
108
+
109
+ # Special rule for the target install/local
110
+ install/local: preinstall
111
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
112
+ /home/teamcity/buildAgent/temp/buildTmp/build-env-4uhi3thc/lib/python3.12/site-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
113
+ .PHONY : install/local
114
+
115
+ # Special rule for the target install/local
116
+ install/local/fast: preinstall/fast
117
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
118
+ /home/teamcity/buildAgent/temp/buildTmp/build-env-4uhi3thc/lib/python3.12/site-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
119
+ .PHONY : install/local/fast
120
+
121
+ # Special rule for the target install/strip
122
+ install/strip: preinstall
123
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
124
+ /home/teamcity/buildAgent/temp/buildTmp/build-env-4uhi3thc/lib/python3.12/site-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
125
+ .PHONY : install/strip
126
+
127
+ # Special rule for the target install/strip
128
+ install/strip/fast: preinstall/fast
129
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
130
+ /home/teamcity/buildAgent/temp/buildTmp/build-env-4uhi3thc/lib/python3.12/site-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
131
+ .PHONY : install/strip/fast
132
+
133
+ # The main all target
134
+ all: cmake_check_build_system
135
+ cd /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-x86_64-cpython-312 && $(CMAKE_COMMAND) -E cmake_progress_start /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-x86_64-cpython-312/CMakeFiles /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb/date//CMakeFiles/progress.marks
136
+ cd /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-x86_64-cpython-312 && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb/date/all
137
+ $(CMAKE_COMMAND) -E cmake_progress_start /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-x86_64-cpython-312/CMakeFiles 0
138
+ .PHONY : all
139
+
140
+ # The main clean target
141
+ clean:
142
+ cd /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-x86_64-cpython-312 && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb/date/clean
143
+ .PHONY : clean
144
+
145
+ # The main clean target
146
+ clean/fast: clean
147
+ .PHONY : clean/fast
148
+
149
+ # Prepare targets for installation.
150
+ preinstall: all
151
+ cd /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-x86_64-cpython-312 && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb/date/preinstall
152
+ .PHONY : preinstall
153
+
154
+ # Prepare targets for installation.
155
+ preinstall/fast:
156
+ cd /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-x86_64-cpython-312 && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb/date/preinstall
157
+ .PHONY : preinstall/fast
158
+
159
+ # clear depends
160
+ depend:
161
+ cd /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-x86_64-cpython-312 && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
162
+ .PHONY : depend
163
+
164
+ # Help Target
165
+ help:
166
+ @echo "The following are some of the valid targets for this Makefile:"
167
+ @echo "... all (the default if no target is provided)"
168
+ @echo "... clean"
169
+ @echo "... depend"
170
+ @echo "... edit_cache"
171
+ @echo "... install"
172
+ @echo "... install/local"
173
+ @echo "... install/strip"
174
+ @echo "... list_install_components"
175
+ @echo "... rebuild_cache"
176
+ .PHONY : help
177
+
178
+
179
+
180
+ #=============================================================================
181
+ # Special targets to cleanup operation of make.
182
+
183
+ # Special rule to run CMake to check the build system integrity.
184
+ # No rule that depends on this can have commands that come from listfiles
185
+ # because they might be regenerated.
186
+ cmake_check_build_system:
187
+ cd /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-x86_64-cpython-312 && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
188
+ .PHONY : cmake_check_build_system
189
+
@@ -0,0 +1,81 @@
1
+ # Install script for directory: /home/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty/date
2
+
3
+ # Set the install prefix
4
+ if(NOT DEFINED CMAKE_INSTALL_PREFIX)
5
+ set(CMAKE_INSTALL_PREFIX "/usr/local")
6
+ endif()
7
+ string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
8
+
9
+ # Set the install configuration name.
10
+ if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
11
+ if(BUILD_TYPE)
12
+ string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
13
+ CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
14
+ else()
15
+ set(CMAKE_INSTALL_CONFIG_NAME "Release")
16
+ endif()
17
+ message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
18
+ endif()
19
+
20
+ # Set the component getting installed.
21
+ if(NOT CMAKE_INSTALL_COMPONENT)
22
+ if(COMPONENT)
23
+ message(STATUS "Install component: \"${COMPONENT}\"")
24
+ set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
25
+ else()
26
+ set(CMAKE_INSTALL_COMPONENT)
27
+ endif()
28
+ endif()
29
+
30
+ # Install shared libraries without execute permission?
31
+ if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
32
+ set(CMAKE_INSTALL_SO_NO_EXE "0")
33
+ endif()
34
+
35
+ # Is this installation the result of a crosscompile?
36
+ if(NOT DEFINED CMAKE_CROSSCOMPILING)
37
+ set(CMAKE_CROSSCOMPILING "FALSE")
38
+ endif()
39
+
40
+ # Set path to fallback-tool for dependency-resolution.
41
+ if(NOT DEFINED CMAKE_OBJDUMP)
42
+ set(CMAKE_OBJDUMP "/opt/rh/gcc-toolset-14/root/usr/bin/objdump")
43
+ endif()
44
+
45
+ if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
46
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/date" TYPE FILE FILES "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty/date/include/date/date.h")
47
+ endif()
48
+
49
+ if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
50
+ if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib64/cmake/date/dateTargets.cmake")
51
+ file(DIFFERENT _cmake_export_file_changed FILES
52
+ "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib64/cmake/date/dateTargets.cmake"
53
+ "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb/date/CMakeFiles/Export/b76006b2b7125baf1b0b4d4ca4db82bd/dateTargets.cmake")
54
+ if(_cmake_export_file_changed)
55
+ file(GLOB _cmake_old_config_files "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib64/cmake/date/dateTargets-*.cmake")
56
+ if(_cmake_old_config_files)
57
+ string(REPLACE ";" ", " _cmake_old_config_files_text "${_cmake_old_config_files}")
58
+ message(STATUS "Old export file \"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib64/cmake/date/dateTargets.cmake\" will be replaced. Removing files [${_cmake_old_config_files_text}].")
59
+ unset(_cmake_old_config_files_text)
60
+ file(REMOVE ${_cmake_old_config_files})
61
+ endif()
62
+ unset(_cmake_old_config_files)
63
+ endif()
64
+ unset(_cmake_export_file_changed)
65
+ endif()
66
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib64/cmake/date" TYPE FILE FILES "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb/date/CMakeFiles/Export/b76006b2b7125baf1b0b4d4ca4db82bd/dateTargets.cmake")
67
+ endif()
68
+
69
+ if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
70
+ file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib64/cmake/date" TYPE FILE FILES
71
+ "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty/date/cmake/dateConfig.cmake"
72
+ "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb/date/dateConfigVersion.cmake"
73
+ )
74
+ endif()
75
+
76
+ string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
77
+ "${CMAKE_INSTALL_MANIFEST_FILES}")
78
+ if(CMAKE_INSTALL_LOCAL_ONLY)
79
+ file(WRITE "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb/date/install_local_manifest.txt"
80
+ "${CMAKE_INSTALL_MANIFEST_CONTENT}")
81
+ endif()
@@ -0,0 +1,65 @@
1
+ # This is a basic version file for the Config-mode of find_package().
2
+ # It is used by write_basic_package_version_file() as input file for configure_file()
3
+ # to create a version-file which can be installed along a config.cmake file.
4
+ #
5
+ # The created file sets PACKAGE_VERSION_EXACT if the current version string and
6
+ # the requested version string are exactly the same and it sets
7
+ # PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version,
8
+ # but only if the requested major version is the same as the current one.
9
+ # The variable CVF_VERSION must be set before calling configure_file().
10
+
11
+
12
+ set(PACKAGE_VERSION "3.0.1")
13
+
14
+ if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
15
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
16
+ else()
17
+
18
+ if("3.0.1" MATCHES "^([0-9]+)\\.")
19
+ set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
20
+ if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
21
+ string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
22
+ endif()
23
+ else()
24
+ set(CVF_VERSION_MAJOR "3.0.1")
25
+ endif()
26
+
27
+ if(PACKAGE_FIND_VERSION_RANGE)
28
+ # both endpoints of the range must have the expected major version
29
+ math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1")
30
+ if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
31
+ OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR)
32
+ OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT)))
33
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
34
+ elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
35
+ AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX)
36
+ OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX)))
37
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
38
+ else()
39
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
40
+ endif()
41
+ else()
42
+ if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
43
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
44
+ else()
45
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
46
+ endif()
47
+
48
+ if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
49
+ set(PACKAGE_VERSION_EXACT TRUE)
50
+ endif()
51
+ endif()
52
+ endif()
53
+
54
+
55
+ # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
56
+ if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
57
+ return()
58
+ endif()
59
+
60
+ # check that the installed version has the same 32/64bit-ness as the one which is currently searching:
61
+ if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
62
+ math(EXPR installedBits "8 * 8")
63
+ set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
64
+ set(PACKAGE_VERSION_UNSUITABLE TRUE)
65
+ endif()
@@ -0,0 +1,63 @@
1
+ # Generated by CMake
2
+
3
+ if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
4
+ message(FATAL_ERROR "CMake >= 3.0.0 required")
5
+ endif()
6
+ if(CMAKE_VERSION VERSION_LESS "3.0.0")
7
+ message(FATAL_ERROR "CMake >= 3.0.0 required")
8
+ endif()
9
+ cmake_policy(PUSH)
10
+ cmake_policy(VERSION 3.0.0...3.31)
11
+ #----------------------------------------------------------------
12
+ # Generated CMake target import file.
13
+ #----------------------------------------------------------------
14
+
15
+ # Commands may need to know the format version.
16
+ set(CMAKE_IMPORT_FILE_VERSION 1)
17
+
18
+ # Protect against multiple inclusion, which would fail when already imported targets are added once more.
19
+ set(_cmake_targets_defined "")
20
+ set(_cmake_targets_not_defined "")
21
+ set(_cmake_expected_targets "")
22
+ foreach(_cmake_expected_target IN ITEMS date::date)
23
+ list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
24
+ if(TARGET "${_cmake_expected_target}")
25
+ list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
26
+ else()
27
+ list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
28
+ endif()
29
+ endforeach()
30
+ unset(_cmake_expected_target)
31
+ if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
32
+ unset(_cmake_targets_defined)
33
+ unset(_cmake_targets_not_defined)
34
+ unset(_cmake_expected_targets)
35
+ unset(CMAKE_IMPORT_FILE_VERSION)
36
+ cmake_policy(POP)
37
+ return()
38
+ endif()
39
+ if(NOT _cmake_targets_defined STREQUAL "")
40
+ string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
41
+ string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
42
+ message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
43
+ endif()
44
+ unset(_cmake_targets_defined)
45
+ unset(_cmake_targets_not_defined)
46
+ unset(_cmake_expected_targets)
47
+
48
+
49
+ # Create imported target date::date
50
+ add_library(date::date INTERFACE IMPORTED)
51
+
52
+ set_target_properties(date::date PROPERTIES
53
+ INTERFACE_COMPILE_DEFINITIONS "ONLY_C_LOCALE=0"
54
+ INTERFACE_INCLUDE_DIRECTORIES "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty/date/include"
55
+ INTERFACE_SOURCES "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty/date/include/date/date.h;/home/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty/date/include/date/solar_hijri.h;/home/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty/date/include/date/islamic.h;/home/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty/date/include/date/iso_week.h;/home/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty/date/include/date/julian.h"
56
+ )
57
+
58
+ # This file does not depend on other imported targets which have
59
+ # been exported from the same project but in a separate export set.
60
+
61
+ # Commands beyond this point should not need to know the version.
62
+ set(CMAKE_IMPORT_FILE_VERSION)
63
+ cmake_policy(POP)
@@ -0,0 +1,8 @@
1
+ from .writer import extend_writer
2
+
3
+
4
+ __all__ = []
5
+
6
+
7
+ def extend_module(m):
8
+ m.Writer = extend_writer(m.Writer)
@@ -0,0 +1,191 @@
1
+ import copy
2
+ import quasardb
3
+ import numpy as np
4
+ import numpy.ma as ma
5
+
6
+ __all__ = []
7
+
8
+
9
+ def _ensure_ctype(self, idx, ctype):
10
+ assert "table" in self._legacy_state
11
+ infos = self._legacy_state["table"].list_columns()
12
+ cinfo = infos[idx]
13
+
14
+ ctype_data = copy.copy(ctype)
15
+ ctype_column = copy.copy(cinfo.type)
16
+
17
+ if ctype_data == quasardb.ColumnType.Symbol:
18
+ ctype_data = quasardb.ColumnType.String
19
+
20
+ if ctype_column == quasardb.ColumnType.Symbol:
21
+ ctype_column = quasardb.ColumnType.String
22
+
23
+ if not ctype_data == ctype_column:
24
+ raise quasardb.IncompatibleTypeError()
25
+
26
+
27
+ def _legacy_next_row(self, table):
28
+ if "pending" not in self._legacy_state:
29
+ self._legacy_state["pending"] = []
30
+
31
+ if "table" not in self._legacy_state:
32
+ self._legacy_state["table"] = table
33
+
34
+ self._legacy_state["pending"].append({"by_index": {}})
35
+
36
+ # Return reference to the row inside the buffer
37
+ return self._legacy_state["pending"][-1]
38
+
39
+
40
+ def _legacy_current_row(self):
41
+ return self._legacy_state["pending"][-1]
42
+
43
+
44
+ def _legacy_start_row(self, table, x):
45
+ row = _legacy_next_row(self, table)
46
+ assert "$timestamp" not in row
47
+ row["$timestamp"] = x
48
+
49
+
50
+ def _legacy_set_double(self, idx, x):
51
+ _ensure_ctype(self, idx, quasardb.ColumnType.Double)
52
+ assert isinstance(x, float)
53
+ assert idx not in _legacy_current_row(self)["by_index"]
54
+ _legacy_current_row(self)["by_index"][idx] = x
55
+
56
+
57
+ def _legacy_set_int64(self, idx, x):
58
+ _ensure_ctype(self, idx, quasardb.ColumnType.Int64)
59
+ assert isinstance(x, int)
60
+ assert idx not in _legacy_current_row(self)["by_index"]
61
+ _legacy_current_row(self)["by_index"][idx] = x
62
+
63
+
64
+ def _legacy_set_timestamp(self, idx, x):
65
+ _ensure_ctype(self, idx, quasardb.ColumnType.Timestamp)
66
+ assert idx not in _legacy_current_row(self)["by_index"]
67
+ _legacy_current_row(self)["by_index"][idx] = x
68
+
69
+
70
+ def _legacy_set_string(self, idx, x):
71
+ _ensure_ctype(self, idx, quasardb.ColumnType.String)
72
+ assert isinstance(x, str)
73
+ assert idx not in _legacy_current_row(self)["by_index"]
74
+
75
+ _legacy_current_row(self)["by_index"][idx] = x
76
+
77
+
78
+ def _legacy_set_blob(self, idx, x):
79
+ _ensure_ctype(self, idx, quasardb.ColumnType.Blob)
80
+ assert isinstance(x, bytes)
81
+ assert idx not in _legacy_current_row(self)["by_index"]
82
+
83
+ _legacy_current_row(self)["by_index"][idx] = x
84
+
85
+
86
+ def _legacy_push(self):
87
+ if "pending" not in self._legacy_state:
88
+ # Extremely likely default case, no "old" rows
89
+ return
90
+
91
+ assert "table" in self._legacy_state
92
+ table = self._legacy_state["table"]
93
+
94
+ # Some useful constants
95
+ dtype_by_ctype = {
96
+ quasardb.ColumnType.Double: np.dtype("float64"),
97
+ quasardb.ColumnType.Int64: np.dtype("int64"),
98
+ quasardb.ColumnType.Timestamp: np.dtype("datetime64[ns]"),
99
+ quasardb.ColumnType.String: np.dtype("unicode"),
100
+ quasardb.ColumnType.Symbol: np.dtype("unicode"),
101
+ quasardb.ColumnType.Blob: np.dtype("bytes"),
102
+ }
103
+
104
+ ctype_by_idx = {}
105
+ cinfos = table.list_columns()
106
+ for i in range(len(cinfos)):
107
+ ctype_by_idx[i] = cinfos[i].type
108
+
109
+ all_idx = set(ctype_by_idx.keys())
110
+
111
+ # Prepare data structure
112
+ pivoted = {"$timestamp": [], "by_index": {}}
113
+ for i in all_idx:
114
+ pivoted["by_index"][i] = []
115
+
116
+ # Do the actual pivot
117
+ for row in self._legacy_state["pending"]:
118
+ assert "$timestamp" in row
119
+ assert "by_index" in row
120
+
121
+ pivoted["$timestamp"].append(row["$timestamp"])
122
+
123
+ for idx in pivoted["by_index"].keys():
124
+ val = row["by_index"].get(idx, None)
125
+ pivoted["by_index"][idx].append(val)
126
+
127
+ # Validation / verification, not strictly necessary. Effectively
128
+ # ensures that we have the exact same amount of values for every
129
+ # column
130
+ for xs in pivoted["by_index"].values():
131
+ assert len(xs) == len(pivoted["$timestamp"])
132
+
133
+ column_data = []
134
+
135
+ for idx, xs in pivoted["by_index"].items():
136
+ ctype = ctype_by_idx[idx]
137
+ dtype = dtype_by_ctype[ctype]
138
+
139
+ # None-mask works, because everything inside the list are just regular ojbects
140
+
141
+ mask = [x is None for x in xs]
142
+
143
+ xs_ = []
144
+ if all(mask):
145
+ xs_ = ma.masked_all(len(xs), dtype=dtype)
146
+ else:
147
+ xs_ = ma.masked_array(data=np.array(xs, dtype), mask=mask)
148
+
149
+ assert len(xs_) == len(pivoted["$timestamp"])
150
+
151
+ column_data.append(xs_)
152
+
153
+ push_data = quasardb.WriterData()
154
+ index = np.array(pivoted["$timestamp"], np.dtype("datetime64[ns]"))
155
+
156
+ push_data.append(table, index, column_data)
157
+
158
+ self._legacy_state = {}
159
+ return push_data
160
+
161
+
162
+ def _wrap_fn(old_fn, replace_fn):
163
+
164
+ def wrapped(self, *args, **kwargs):
165
+ data = replace_fn(self)
166
+ if data:
167
+ return old_fn(self, data, *args, **kwargs)
168
+ else:
169
+ return old_fn(self, *args, **kwargs)
170
+
171
+ return wrapped
172
+
173
+
174
+ def extend_writer(x):
175
+ """
176
+ Extends the writer with the "old", batch inserter API. This is purely
177
+ a backwards compatibility layer, and we want to avoid having to maintain that
178
+ in C++ with few benefits.
179
+ """
180
+
181
+ x.start_row = _legacy_start_row
182
+ x.set_double = _legacy_set_double
183
+ x.set_int64 = _legacy_set_int64
184
+ x.set_string = _legacy_set_string
185
+ x.set_blob = _legacy_set_blob
186
+ x.set_timestamp = _legacy_set_timestamp
187
+
188
+ x.push = _wrap_fn(x.push, _legacy_push)
189
+ x.push_fast = _wrap_fn(x.push_fast, _legacy_push)
190
+ x.push_async = _wrap_fn(x.push_async, _legacy_push)
191
+ x.push_truncate = _wrap_fn(x.push_truncate, _legacy_push)