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.
- quasardb/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- quasardb/CMakeFiles/progress.marks +1 -0
- quasardb/Makefile +189 -0
- quasardb/__init__.py +140 -0
- quasardb/__init__.pyi +72 -0
- quasardb/cmake_install.cmake +58 -0
- quasardb/date/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- quasardb/date/CMakeFiles/Export/b76006b2b7125baf1b0b4d4ca4db82bd/dateTargets.cmake +108 -0
- quasardb/date/CMakeFiles/progress.marks +1 -0
- quasardb/date/Makefile +189 -0
- quasardb/date/cmake_install.cmake +81 -0
- quasardb/date/dateConfigVersion.cmake +65 -0
- quasardb/date/dateTargets.cmake +63 -0
- quasardb/extensions/__init__.py +8 -0
- quasardb/extensions/writer.py +191 -0
- quasardb/firehose.py +103 -0
- quasardb/libqdb_api.so +0 -0
- quasardb/numpy/__init__.py +1045 -0
- quasardb/pandas/__init__.py +533 -0
- quasardb/pool.py +311 -0
- quasardb/pybind11/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- quasardb/pybind11/CMakeFiles/progress.marks +1 -0
- quasardb/pybind11/Makefile +189 -0
- quasardb/pybind11/cmake_install.cmake +50 -0
- quasardb/quasardb/__init__.pyi +97 -0
- quasardb/quasardb/_batch_column.pyi +5 -0
- quasardb/quasardb/_batch_inserter.pyi +30 -0
- quasardb/quasardb/_blob.pyi +16 -0
- quasardb/quasardb/_cluster.pyi +100 -0
- quasardb/quasardb/_continuous.pyi +16 -0
- quasardb/quasardb/_double.pyi +7 -0
- quasardb/quasardb/_entry.pyi +60 -0
- quasardb/quasardb/_error.pyi +15 -0
- quasardb/quasardb/_integer.pyi +7 -0
- quasardb/quasardb/_node.pyi +26 -0
- quasardb/quasardb/_options.pyi +105 -0
- quasardb/quasardb/_perf.pyi +5 -0
- quasardb/quasardb/_properties.pyi +5 -0
- quasardb/quasardb/_query.pyi +2 -0
- quasardb/quasardb/_reader.pyi +9 -0
- quasardb/quasardb/_retry.pyi +16 -0
- quasardb/quasardb/_string.pyi +12 -0
- quasardb/quasardb/_table.pyi +125 -0
- quasardb/quasardb/_tag.pyi +5 -0
- quasardb/quasardb/_timestamp.pyi +9 -0
- quasardb/quasardb/_writer.pyi +111 -0
- quasardb/quasardb/metrics/__init__.pyi +20 -0
- quasardb/quasardb.cpython-312-x86_64-linux-gnu.so +0 -0
- quasardb/range-v3/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- quasardb/range-v3/CMakeFiles/Export/48a02d54b5e9e60c30c5f249b431a911/range-v3-targets.cmake +128 -0
- quasardb/range-v3/CMakeFiles/progress.marks +1 -0
- quasardb/range-v3/CMakeFiles/range.v3.headers.dir/DependInfo.cmake +22 -0
- quasardb/range-v3/CMakeFiles/range.v3.headers.dir/build.make +86 -0
- quasardb/range-v3/CMakeFiles/range.v3.headers.dir/cmake_clean.cmake +5 -0
- quasardb/range-v3/CMakeFiles/range.v3.headers.dir/compiler_depend.make +2 -0
- quasardb/range-v3/CMakeFiles/range.v3.headers.dir/compiler_depend.ts +2 -0
- quasardb/range-v3/CMakeFiles/range.v3.headers.dir/progress.make +1 -0
- quasardb/range-v3/Makefile +204 -0
- quasardb/range-v3/cmake_install.cmake +93 -0
- quasardb/range-v3/include/range/v3/version.hpp +24 -0
- quasardb/range-v3/range-v3-config-version.cmake +83 -0
- quasardb/range-v3/range-v3-config.cmake +80 -0
- quasardb/stats.py +358 -0
- quasardb/table_cache.py +56 -0
- quasardb-3.14.2.dev7.dist-info/METADATA +41 -0
- quasardb-3.14.2.dev7.dist-info/RECORD +69 -0
- quasardb-3.14.2.dev7.dist-info/WHEEL +6 -0
- quasardb-3.14.2.dev7.dist-info/licenses/LICENSE.md +11 -0
- quasardb-3.14.2.dev7.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# CMAKE generated file: DO NOT EDIT!
|
|
2
|
+
# Generated by "Unix Makefiles" Generator, CMake Version 4.1
|
|
3
|
+
|
|
4
|
+
# Relative path conversion top directories.
|
|
5
|
+
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty")
|
|
6
|
+
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb")
|
|
7
|
+
|
|
8
|
+
# Force unix paths in dependencies.
|
|
9
|
+
set(CMAKE_FORCE_UNIX_PATHS 1)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# The C and CXX include file regular expressions for this directory.
|
|
13
|
+
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
|
|
14
|
+
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
|
|
15
|
+
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
|
|
16
|
+
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0
|
quasardb/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//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/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/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/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/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
|
+
|
quasardb/__init__.py
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# pylint: disable=C0103,C0111,C0302,R0903
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2009-2024, quasardb SAS. All rights reserved.
|
|
4
|
+
# All rights reserved.
|
|
5
|
+
#
|
|
6
|
+
# Redistribution and use in source and binary forms, with or without
|
|
7
|
+
# modification, are permitted provided that the following conditions are met:
|
|
8
|
+
#
|
|
9
|
+
# * Redistributions of source code must retain the above copyright
|
|
10
|
+
# notice, this list of conditions and the following disclaimer.
|
|
11
|
+
# * Redistributions in binary form must reproduce the above copyright
|
|
12
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
13
|
+
# documentation and/or other materials provided with the distribution.
|
|
14
|
+
# * Neither the name of quasardb nor the names of its contributors may
|
|
15
|
+
# be used to endorse or promote products derived from this software
|
|
16
|
+
# without specific prior written permission.
|
|
17
|
+
#
|
|
18
|
+
# THIS SOFTWARE IS PROVIDED BY QUASARDB AND CONTRIBUTORS ``AS IS'' AND ANY
|
|
19
|
+
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
20
|
+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
+
# DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
|
|
22
|
+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
23
|
+
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
24
|
+
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
25
|
+
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
26
|
+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
27
|
+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
#
|
|
29
|
+
|
|
30
|
+
"""
|
|
31
|
+
.. module: quasardb
|
|
32
|
+
:platform: Unix, Windows
|
|
33
|
+
:synopsis: quasardb official Python API
|
|
34
|
+
|
|
35
|
+
.. moduleauthor: quasardb SAS. All rights reserved
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
from typing import List, Optional
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def generic_error_msg(msg: List[str], e: Optional[BaseException] = None) -> str:
|
|
43
|
+
msg_str = "\n".join(msg)
|
|
44
|
+
|
|
45
|
+
if e is None:
|
|
46
|
+
return """
|
|
47
|
+
**************************************************************************
|
|
48
|
+
|
|
49
|
+
{}
|
|
50
|
+
|
|
51
|
+
**************************************************************************
|
|
52
|
+
""".format(
|
|
53
|
+
msg_str
|
|
54
|
+
)
|
|
55
|
+
else:
|
|
56
|
+
return """
|
|
57
|
+
**************************************************************************
|
|
58
|
+
|
|
59
|
+
{}
|
|
60
|
+
|
|
61
|
+
**************************************************************************
|
|
62
|
+
|
|
63
|
+
Original exception:
|
|
64
|
+
|
|
65
|
+
Type: {}
|
|
66
|
+
Message: {}
|
|
67
|
+
|
|
68
|
+
**************************************************************************
|
|
69
|
+
""".format(
|
|
70
|
+
msg_str, type(e), str(e)
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def link_error_msg(e: BaseException) -> str:
|
|
75
|
+
msg = [
|
|
76
|
+
"QuasarDB was unable to find all expected symbols in the compiled library.",
|
|
77
|
+
"This is usually caused by running an incorrect version of the QuasarDB C",
|
|
78
|
+
"API (libqdb_api) along the QuasarDB Python API (this module).",
|
|
79
|
+
"",
|
|
80
|
+
"Please ensure you do not have multiple versions of libqdb_api installed.",
|
|
81
|
+
"If you believe this to be a bug, please reach out to QuasarDB at",
|
|
82
|
+
"support@quasar.ai, and include the underlying error message:",
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
return generic_error_msg(msg, e)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def glibc_error_msg(e: BaseException) -> str:
|
|
89
|
+
msg = [
|
|
90
|
+
"QuasarDB was unable to find the expected GLIBC version on this machine.",
|
|
91
|
+
"This is usually caused by compiling the Python API on a different machine "
|
|
92
|
+
"than you're currently using.",
|
|
93
|
+
"",
|
|
94
|
+
"Please ensure you're using the official version of the QuasarDB Python API, ",
|
|
95
|
+
"and are using a machine that is compatible with the manylinux2014 Python ",
|
|
96
|
+
"platform tag as defined in PEP 599. ",
|
|
97
|
+
"",
|
|
98
|
+
"If you believe this to be a bug, please reach out to QuasarDB at",
|
|
99
|
+
"support@quasar.ai, and include the underlying error message:",
|
|
100
|
+
]
|
|
101
|
+
|
|
102
|
+
return generic_error_msg(msg, e)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def unknown_error_msg() -> str:
|
|
106
|
+
msg = [
|
|
107
|
+
"Unable to import quasardb module: unknown error. ",
|
|
108
|
+
"",
|
|
109
|
+
"This may have several causes, including, but not limited to: ",
|
|
110
|
+
" - a link error, ",
|
|
111
|
+
" - architecture mismatch, ",
|
|
112
|
+
" - the current working directory already contains a 'quasardb' subdirectory.",
|
|
113
|
+
"",
|
|
114
|
+
"If you believe this to be a bug, please reach out to QuasarDB at",
|
|
115
|
+
"support@quasar.ai",
|
|
116
|
+
]
|
|
117
|
+
|
|
118
|
+
return generic_error_msg(msg)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
try:
|
|
122
|
+
from quasardb.quasardb import *
|
|
123
|
+
except BaseException as e:
|
|
124
|
+
print(e)
|
|
125
|
+
if "undefined symbol" in str(e):
|
|
126
|
+
print(link_error_msg(e))
|
|
127
|
+
raise e
|
|
128
|
+
elif "GLIBC" in str(e):
|
|
129
|
+
print(glibc_error_msg(e))
|
|
130
|
+
else:
|
|
131
|
+
from quasardb import *
|
|
132
|
+
|
|
133
|
+
if not "quasardb" in locals():
|
|
134
|
+
print(unknown_error_msg())
|
|
135
|
+
raise ImportError()
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
from .extensions import extend_module
|
|
139
|
+
|
|
140
|
+
extend_module(quasardb)
|
quasardb/__init__.pyi
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"""
|
|
2
|
+
|
|
3
|
+
.. module: quasardb
|
|
4
|
+
:platform: Unix, Windows
|
|
5
|
+
:synopsis: quasardb official Python API
|
|
6
|
+
|
|
7
|
+
.. moduleauthor: quasardb SAS. All rights reserved
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
from quasardb.quasardb import (
|
|
13
|
+
AliasAlreadyExistsError,
|
|
14
|
+
AliasNotFoundError,
|
|
15
|
+
AsyncPipelineFullError,
|
|
16
|
+
BatchColumnInfo,
|
|
17
|
+
Cluster,
|
|
18
|
+
ColumnInfo,
|
|
19
|
+
ColumnType,
|
|
20
|
+
Error,
|
|
21
|
+
IncompatibleTypeError,
|
|
22
|
+
IndexedColumnInfo,
|
|
23
|
+
InputBufferTooSmallError,
|
|
24
|
+
InternalLocalError,
|
|
25
|
+
InvalidArgumentError,
|
|
26
|
+
InvalidDatetimeError,
|
|
27
|
+
InvalidHandleError,
|
|
28
|
+
InvalidQueryError,
|
|
29
|
+
Node,
|
|
30
|
+
NotImplementedError,
|
|
31
|
+
OutOfBoundsError,
|
|
32
|
+
RetryOptions,
|
|
33
|
+
TryAgainError,
|
|
34
|
+
UninitializedError,
|
|
35
|
+
WriterData,
|
|
36
|
+
WriterPushMode,
|
|
37
|
+
build,
|
|
38
|
+
metrics,
|
|
39
|
+
never_expires,
|
|
40
|
+
version,
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
__all__ = [
|
|
44
|
+
"AliasAlreadyExistsError",
|
|
45
|
+
"AliasNotFoundError",
|
|
46
|
+
"AsyncPipelineFullError",
|
|
47
|
+
"BatchColumnInfo",
|
|
48
|
+
"Cluster",
|
|
49
|
+
"ColumnInfo",
|
|
50
|
+
"ColumnType",
|
|
51
|
+
"Error",
|
|
52
|
+
"IncompatibleTypeError",
|
|
53
|
+
"IndexedColumnInfo",
|
|
54
|
+
"InputBufferTooSmallError",
|
|
55
|
+
"InternalLocalError",
|
|
56
|
+
"InvalidArgumentError",
|
|
57
|
+
"InvalidDatetimeError",
|
|
58
|
+
"InvalidHandleError",
|
|
59
|
+
"InvalidQueryError",
|
|
60
|
+
"Node",
|
|
61
|
+
"NotImplementedError",
|
|
62
|
+
"OutOfBoundsError",
|
|
63
|
+
"RetryOptions",
|
|
64
|
+
"TryAgainError",
|
|
65
|
+
"UninitializedError",
|
|
66
|
+
"WriterData",
|
|
67
|
+
"WriterPushMode",
|
|
68
|
+
"build",
|
|
69
|
+
"metrics",
|
|
70
|
+
"never_expires",
|
|
71
|
+
"version",
|
|
72
|
+
]
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Install script for directory: /home/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty
|
|
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(NOT CMAKE_INSTALL_LOCAL_ONLY)
|
|
46
|
+
# Include the install script for each subdirectory.
|
|
47
|
+
include("/home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb/date/cmake_install.cmake")
|
|
48
|
+
include("/home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb/pybind11/cmake_install.cmake")
|
|
49
|
+
include("/home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb/range-v3/cmake_install.cmake")
|
|
50
|
+
|
|
51
|
+
endif()
|
|
52
|
+
|
|
53
|
+
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
|
|
54
|
+
"${CMAKE_INSTALL_MANIFEST_FILES}")
|
|
55
|
+
if(CMAKE_INSTALL_LOCAL_ONLY)
|
|
56
|
+
file(WRITE "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb/install_local_manifest.txt"
|
|
57
|
+
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
|
|
58
|
+
endif()
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# CMAKE generated file: DO NOT EDIT!
|
|
2
|
+
# Generated by "Unix Makefiles" Generator, CMake Version 4.1
|
|
3
|
+
|
|
4
|
+
# Relative path conversion top directories.
|
|
5
|
+
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty")
|
|
6
|
+
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-x86_64-cpython-312/quasardb")
|
|
7
|
+
|
|
8
|
+
# Force unix paths in dependencies.
|
|
9
|
+
set(CMAKE_FORCE_UNIX_PATHS 1)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# The C and CXX include file regular expressions for this directory.
|
|
13
|
+
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
|
|
14
|
+
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
|
|
15
|
+
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
|
|
16
|
+
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Generated by CMake
|
|
2
|
+
|
|
3
|
+
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
|
4
|
+
message(FATAL_ERROR "CMake >= 3.1.0 required")
|
|
5
|
+
endif()
|
|
6
|
+
if(CMAKE_VERSION VERSION_LESS "3.1.0")
|
|
7
|
+
message(FATAL_ERROR "CMake >= 3.1.0 required")
|
|
8
|
+
endif()
|
|
9
|
+
cmake_policy(PUSH)
|
|
10
|
+
cmake_policy(VERSION 3.1.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
|
+
# Compute the installation prefix relative to this file.
|
|
50
|
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
51
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
52
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
53
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
54
|
+
if(_IMPORT_PREFIX STREQUAL "/")
|
|
55
|
+
set(_IMPORT_PREFIX "")
|
|
56
|
+
endif()
|
|
57
|
+
|
|
58
|
+
# Create imported target date::date
|
|
59
|
+
add_library(date::date INTERFACE IMPORTED)
|
|
60
|
+
|
|
61
|
+
set_target_properties(date::date PROPERTIES
|
|
62
|
+
INTERFACE_COMPILE_DEFINITIONS "ONLY_C_LOCALE=0"
|
|
63
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
|
64
|
+
INTERFACE_SOURCES "${_IMPORT_PREFIX}/include/date/date.h"
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
# Load information for each installed configuration.
|
|
68
|
+
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/dateTargets-*.cmake")
|
|
69
|
+
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
|
70
|
+
include("${_cmake_config_file}")
|
|
71
|
+
endforeach()
|
|
72
|
+
unset(_cmake_config_file)
|
|
73
|
+
unset(_cmake_config_files)
|
|
74
|
+
|
|
75
|
+
# Cleanup temporary variables.
|
|
76
|
+
set(_IMPORT_PREFIX)
|
|
77
|
+
|
|
78
|
+
# Loop over all imported files and verify that they actually exist
|
|
79
|
+
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
|
80
|
+
if(CMAKE_VERSION VERSION_LESS "3.28"
|
|
81
|
+
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
|
|
82
|
+
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
|
|
83
|
+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
|
84
|
+
if(NOT EXISTS "${_cmake_file}")
|
|
85
|
+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
|
86
|
+
\"${_cmake_file}\"
|
|
87
|
+
but this file does not exist. Possible reasons include:
|
|
88
|
+
* The file was deleted, renamed, or moved to another location.
|
|
89
|
+
* An install or uninstall procedure did not complete successfully.
|
|
90
|
+
* The installation package was faulty and contained
|
|
91
|
+
\"${CMAKE_CURRENT_LIST_FILE}\"
|
|
92
|
+
but not all the files it references.
|
|
93
|
+
")
|
|
94
|
+
endif()
|
|
95
|
+
endforeach()
|
|
96
|
+
endif()
|
|
97
|
+
unset(_cmake_file)
|
|
98
|
+
unset("_cmake_import_check_files_for_${_cmake_target}")
|
|
99
|
+
endforeach()
|
|
100
|
+
unset(_cmake_target)
|
|
101
|
+
unset(_cmake_import_check_targets)
|
|
102
|
+
|
|
103
|
+
# This file does not depend on other imported targets which have
|
|
104
|
+
# been exported from the same project but in a separate export set.
|
|
105
|
+
|
|
106
|
+
# Commands beyond this point should not need to know the version.
|
|
107
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
|
108
|
+
cmake_policy(POP)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0
|