quasardb 3.14.2.dev7__cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.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-aarch64-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
quasardb/pool.py
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import logging
|
|
2
|
+
import quasardb
|
|
3
|
+
import threading
|
|
4
|
+
import functools
|
|
5
|
+
import weakref
|
|
6
|
+
|
|
7
|
+
logger = logging.getLogger("quasardb.pool")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def _create_conn(**kwargs):
|
|
11
|
+
return quasardb.Cluster(**kwargs)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class SessionWrapper(object):
|
|
15
|
+
def __init__(self, pool, conn):
|
|
16
|
+
self._conn = conn
|
|
17
|
+
self._pool = pool
|
|
18
|
+
|
|
19
|
+
def __getattr__(self, attr):
|
|
20
|
+
# This hack copies all the quasardb.Cluster() properties, functions and
|
|
21
|
+
# whatnot, and pretends that this class is actually a quasardb.Cluster.
|
|
22
|
+
#
|
|
23
|
+
# The background is that when someone does this:
|
|
24
|
+
#
|
|
25
|
+
# with pool.connect() as conn:
|
|
26
|
+
# ...
|
|
27
|
+
#
|
|
28
|
+
# we don't want the the connection to be closed near the end, but rather
|
|
29
|
+
# released back onto the pool.
|
|
30
|
+
#
|
|
31
|
+
# Now, my initial approach was to build a pool.Session class which inherited
|
|
32
|
+
# from quasardb.Cluster, and just overload the __exit__ function there. But,
|
|
33
|
+
# we want people to have the flexibility to pass in an external `get_conn` callback
|
|
34
|
+
# in the pool, which establishes a connection, because they may have to look up
|
|
35
|
+
# some dynamic security tokens. This function should then, in turn, return a vanilla
|
|
36
|
+
# quasardb.Cluster() object.
|
|
37
|
+
#
|
|
38
|
+
# And this is why we end up with the solution below.
|
|
39
|
+
if attr in self.__dict__:
|
|
40
|
+
return getattr(self, attr)
|
|
41
|
+
|
|
42
|
+
return getattr(self._conn, attr)
|
|
43
|
+
|
|
44
|
+
def __enter__(self):
|
|
45
|
+
return self
|
|
46
|
+
|
|
47
|
+
def __exit__(self, exc_type, exc_val, exc_tb):
|
|
48
|
+
self._pool.release(self._conn)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class Pool(object):
|
|
52
|
+
"""
|
|
53
|
+
A connection pool. This class should not be initialized directly, but
|
|
54
|
+
rather the subclass `SingletonPool` should be initialized.
|
|
55
|
+
|
|
56
|
+
The constructor either accepts all regular `quasardb.Cluster()` connection parameters,
|
|
57
|
+
or a `get_conn` parameter which is invoked any time a new connection should be
|
|
58
|
+
created.
|
|
59
|
+
|
|
60
|
+
Example usage:
|
|
61
|
+
--------------
|
|
62
|
+
|
|
63
|
+
Initialize the pool by passthrough of `quasardb.Cluster()` arguments:
|
|
64
|
+
```
|
|
65
|
+
import quasardb.pool as pool
|
|
66
|
+
|
|
67
|
+
pool.SingletonPool(uri='qdb://127.0.0.1:2836',
|
|
68
|
+
cluster_public_key='...',
|
|
69
|
+
user_private_key='...',
|
|
70
|
+
user_name='...')
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Initialize pool by providing a callback function
|
|
74
|
+
```
|
|
75
|
+
import quasardb
|
|
76
|
+
import quasardb.pool as pool
|
|
77
|
+
|
|
78
|
+
def my_qdb_connection_create():
|
|
79
|
+
# This function is invoked any time the pool needs to allocate
|
|
80
|
+
# a new connection.
|
|
81
|
+
return quasardb.Cluster(uri='qdb://127.0.0.1:2836',
|
|
82
|
+
cluster_public_key='...',
|
|
83
|
+
user_private_key='...',
|
|
84
|
+
user_name='...')
|
|
85
|
+
|
|
86
|
+
pool.SingletonPool(get_conn=my_qdb_connection_create)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
def __init__(self, get_conn=None, **kwargs):
|
|
92
|
+
self._all_connections = []
|
|
93
|
+
|
|
94
|
+
if get_conn is None:
|
|
95
|
+
get_conn = functools.partial(_create_conn, **kwargs)
|
|
96
|
+
|
|
97
|
+
if not callable(get_conn):
|
|
98
|
+
raise TypeError("get_conn must be callable")
|
|
99
|
+
|
|
100
|
+
self._get_conn = get_conn
|
|
101
|
+
|
|
102
|
+
def __enter__(self):
|
|
103
|
+
return self
|
|
104
|
+
|
|
105
|
+
def __exit__(self, exc_type, exc_val, exc_tb):
|
|
106
|
+
self.close()
|
|
107
|
+
|
|
108
|
+
def _create_conn(self):
|
|
109
|
+
return SessionWrapper(self, self._get_conn())
|
|
110
|
+
|
|
111
|
+
def close(self):
|
|
112
|
+
"""
|
|
113
|
+
Close this connection pool, and all associated connections. This function
|
|
114
|
+
is automatically invoked when used in a with-block or when using the global
|
|
115
|
+
`instance()` singleton.
|
|
116
|
+
"""
|
|
117
|
+
for conn in self._all_connections:
|
|
118
|
+
logger.debug("closing connection {}".format(conn))
|
|
119
|
+
conn.close()
|
|
120
|
+
|
|
121
|
+
def _do_connect(self):
|
|
122
|
+
raise NotImplementedError
|
|
123
|
+
|
|
124
|
+
def connect(self) -> quasardb.Cluster:
|
|
125
|
+
"""
|
|
126
|
+
Acquire a new connection from the pool. Returned connection must either
|
|
127
|
+
be explicitly released using `pool.release()`, or should be wrapped in a
|
|
128
|
+
with-block.
|
|
129
|
+
|
|
130
|
+
Returns:
|
|
131
|
+
--------
|
|
132
|
+
`quasardb.Cluster`
|
|
133
|
+
"""
|
|
134
|
+
logger.info("Acquiring connection from pool")
|
|
135
|
+
return self._do_connect()
|
|
136
|
+
|
|
137
|
+
def _do_release(self):
|
|
138
|
+
raise NotImplementedError
|
|
139
|
+
|
|
140
|
+
def release(self, conn: quasardb.Cluster):
|
|
141
|
+
"""
|
|
142
|
+
Put a connection back into the pool
|
|
143
|
+
"""
|
|
144
|
+
logger.info("Putting connection back onto pool")
|
|
145
|
+
return self._do_release(conn)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
class SingletonPool(Pool):
|
|
149
|
+
"""
|
|
150
|
+
Implementation of our connection pool that maintains just a single connection
|
|
151
|
+
per thread.
|
|
152
|
+
|
|
153
|
+
Example usage:
|
|
154
|
+
--------
|
|
155
|
+
|
|
156
|
+
Using pool.connect() in a with-block:
|
|
157
|
+
```
|
|
158
|
+
import quasardb.pool as pool
|
|
159
|
+
|
|
160
|
+
with pool.Pool(uri='qdb://127.0.0.1:2836') as pool:
|
|
161
|
+
with pool.connect() as conn:
|
|
162
|
+
conn.query(...)
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Explicitly releasing the connection using `Pool.release()`:
|
|
166
|
+
```
|
|
167
|
+
import quasardb.pool as pool
|
|
168
|
+
|
|
169
|
+
with pool.Pool(uri='qdb://127.0.0.1:2836') as pool:
|
|
170
|
+
conn = pool.connect()
|
|
171
|
+
try:
|
|
172
|
+
conn.query(...)
|
|
173
|
+
finally:
|
|
174
|
+
pool.release(conn)
|
|
175
|
+
```
|
|
176
|
+
"""
|
|
177
|
+
|
|
178
|
+
def __init__(self, **kwargs):
|
|
179
|
+
Pool.__init__(self, **kwargs)
|
|
180
|
+
self._conn = threading.local()
|
|
181
|
+
|
|
182
|
+
def _do_connect(self):
|
|
183
|
+
try:
|
|
184
|
+
c = self._conn.current()
|
|
185
|
+
if c:
|
|
186
|
+
return c
|
|
187
|
+
except AttributeError:
|
|
188
|
+
pass
|
|
189
|
+
|
|
190
|
+
c = self._create_conn()
|
|
191
|
+
self._conn.current = weakref.ref(c)
|
|
192
|
+
self._all_connections.append(c)
|
|
193
|
+
|
|
194
|
+
return c
|
|
195
|
+
|
|
196
|
+
def _do_release(self, conn):
|
|
197
|
+
# Thread-local connections do not have to be 'released'.
|
|
198
|
+
pass
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
__instance = None
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
def initialize(*args, **kwargs):
|
|
205
|
+
"""
|
|
206
|
+
Initialize a new global SingletonPool. Forwards all arguments to the constructor of
|
|
207
|
+
`SingletonPool()`.
|
|
208
|
+
|
|
209
|
+
After initialization, the instance can be used by invoking `instance()`.
|
|
210
|
+
|
|
211
|
+
Example usage:
|
|
212
|
+
--------------
|
|
213
|
+
|
|
214
|
+
```
|
|
215
|
+
import quasardb.pool as pool
|
|
216
|
+
|
|
217
|
+
pool.initialize(cluster='qdb://127.0.0.1:2836')
|
|
218
|
+
|
|
219
|
+
# ...
|
|
220
|
+
|
|
221
|
+
def myfunction()
|
|
222
|
+
with pool.instance().connect() as conn:
|
|
223
|
+
conn.query(...)
|
|
224
|
+
```
|
|
225
|
+
"""
|
|
226
|
+
global __instance
|
|
227
|
+
__instance = SingletonPool(*args, **kwargs)
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
def instance() -> SingletonPool:
|
|
231
|
+
"""
|
|
232
|
+
Singleton accessor. Instance must have been initialized using initialize()
|
|
233
|
+
prior to invoking this function.
|
|
234
|
+
|
|
235
|
+
Returns:
|
|
236
|
+
--------
|
|
237
|
+
`SingletonPool`
|
|
238
|
+
|
|
239
|
+
"""
|
|
240
|
+
global __instance
|
|
241
|
+
assert (
|
|
242
|
+
__instance is not None
|
|
243
|
+
), "Global connection pool uninitialized: please initialize by calling the initialize() function."
|
|
244
|
+
return __instance
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
def _inject_conn_arg(conn, arg, args, kwargs):
|
|
248
|
+
"""
|
|
249
|
+
Decorator utility function. Takes the argument provided to the decorator
|
|
250
|
+
that configures how we should inject the pool into the args to the callback
|
|
251
|
+
function, and injects it in the correct place.
|
|
252
|
+
"""
|
|
253
|
+
if isinstance(arg, int):
|
|
254
|
+
# Invoked positional such as `@with_pool(arg=1)`, put the pool into the
|
|
255
|
+
# correct position.
|
|
256
|
+
#
|
|
257
|
+
# Because positional args are always a tuple, and tuples don't have an
|
|
258
|
+
# easy 'insert into position' function, we just cast to and from a list.
|
|
259
|
+
args = list(args)
|
|
260
|
+
args.insert(arg, conn)
|
|
261
|
+
args = tuple(args)
|
|
262
|
+
else:
|
|
263
|
+
assert isinstance(arg, str) == True
|
|
264
|
+
# If not a number, we assume it's a kwarg, which makes things easier
|
|
265
|
+
kwargs[arg] = conn
|
|
266
|
+
|
|
267
|
+
return (args, kwargs)
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
def with_conn(_fn=None, *, arg=0):
|
|
271
|
+
"""
|
|
272
|
+
Decorator function that handles connection assignment, release and invocation for you.
|
|
273
|
+
Should be used in conjuction with the global singleton accessor, see also: `initialize()`.
|
|
274
|
+
|
|
275
|
+
By default, the decorator function injects the connection as the first argument to the
|
|
276
|
+
function:
|
|
277
|
+
```
|
|
278
|
+
import quasardb.pool as pool
|
|
279
|
+
pool.initialize(...)
|
|
280
|
+
|
|
281
|
+
@pool.with_conn()
|
|
282
|
+
def myfunction(conn, arg1, arg2):
|
|
283
|
+
conn.query(...)
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
You can optionally provide an `arg` parameter to denote which named keyword to provide
|
|
287
|
+
it as:
|
|
288
|
+
```
|
|
289
|
+
import quasardb.pool as pool
|
|
290
|
+
pool.initialize(...)
|
|
291
|
+
|
|
292
|
+
@pool.with_conn(arg='conn')
|
|
293
|
+
def myfunction(arg1, arg2, conn=None):
|
|
294
|
+
conn.query(...)
|
|
295
|
+
```
|
|
296
|
+
"""
|
|
297
|
+
|
|
298
|
+
def inner(fn):
|
|
299
|
+
def wrapper(*args, **kwargs):
|
|
300
|
+
pool = instance()
|
|
301
|
+
|
|
302
|
+
with pool.connect() as conn:
|
|
303
|
+
(args, kwargs) = _inject_conn_arg(conn, arg, args, kwargs)
|
|
304
|
+
return fn(*args, **kwargs)
|
|
305
|
+
|
|
306
|
+
return wrapper
|
|
307
|
+
|
|
308
|
+
if _fn is None:
|
|
309
|
+
return inner
|
|
310
|
+
else:
|
|
311
|
+
return inner(_fn)
|
|
@@ -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-aarch64-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
|
|
@@ -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-s7m2na00/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-s7m2na00/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-aarch64-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-s7m2na00/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-s7m2na00/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-s7m2na00/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-s7m2na00/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-s7m2na00/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-s7m2na00/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-s7m2na00/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-s7m2na00/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-aarch64-cpython-312 && $(CMAKE_COMMAND) -E cmake_progress_start /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-aarch64-cpython-312/CMakeFiles /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-aarch64-cpython-312/quasardb/pybind11//CMakeFiles/progress.marks
|
|
136
|
+
cd /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-aarch64-cpython-312 && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-aarch64-cpython-312/quasardb/pybind11/all
|
|
137
|
+
$(CMAKE_COMMAND) -E cmake_progress_start /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-aarch64-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-aarch64-cpython-312 && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-aarch64-cpython-312/quasardb/pybind11/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-aarch64-cpython-312 && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-aarch64-cpython-312/quasardb/pybind11/preinstall
|
|
152
|
+
.PHONY : preinstall
|
|
153
|
+
|
|
154
|
+
# Prepare targets for installation.
|
|
155
|
+
preinstall/fast:
|
|
156
|
+
cd /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-aarch64-cpython-312 && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-aarch64-cpython-312/quasardb/pybind11/preinstall
|
|
157
|
+
.PHONY : preinstall/fast
|
|
158
|
+
|
|
159
|
+
# clear depends
|
|
160
|
+
depend:
|
|
161
|
+
cd /home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.linux-aarch64-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-aarch64-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,50 @@
|
|
|
1
|
+
# Install script for directory: /home/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty/pybind11
|
|
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
|
+
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
|
|
46
|
+
"${CMAKE_INSTALL_MANIFEST_FILES}")
|
|
47
|
+
if(CMAKE_INSTALL_LOCAL_ONLY)
|
|
48
|
+
file(WRITE "/home/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.linux-aarch64-cpython-312/quasardb/pybind11/install_local_manifest.txt"
|
|
49
|
+
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
|
|
50
|
+
endif()
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from . import metrics
|
|
4
|
+
from ._batch_column import BatchColumnInfo
|
|
5
|
+
from ._batch_inserter import TimeSeriesBatch
|
|
6
|
+
from ._blob import Blob
|
|
7
|
+
from ._cluster import Cluster
|
|
8
|
+
from ._continuous import QueryContinuous
|
|
9
|
+
from ._double import Double
|
|
10
|
+
from ._entry import Entry, ExpirableEntry
|
|
11
|
+
from ._error import (
|
|
12
|
+
AliasAlreadyExistsError,
|
|
13
|
+
AliasNotFoundError,
|
|
14
|
+
AsyncPipelineFullError,
|
|
15
|
+
Error,
|
|
16
|
+
IncompatibleTypeError,
|
|
17
|
+
InputBufferTooSmallError,
|
|
18
|
+
InternalLocalError,
|
|
19
|
+
InvalidArgumentError,
|
|
20
|
+
InvalidDatetimeError,
|
|
21
|
+
InvalidHandleError,
|
|
22
|
+
InvalidQueryError,
|
|
23
|
+
NotImplementedError,
|
|
24
|
+
OutOfBoundsError,
|
|
25
|
+
TryAgainError,
|
|
26
|
+
UninitializedError,
|
|
27
|
+
)
|
|
28
|
+
from ._integer import Integer
|
|
29
|
+
from ._node import DirectBlob, DirectInteger, Node
|
|
30
|
+
from ._options import Options
|
|
31
|
+
from ._perf import Perf
|
|
32
|
+
from ._query import FindQuery
|
|
33
|
+
from ._reader import Reader
|
|
34
|
+
from ._retry import RetryOptions
|
|
35
|
+
from ._string import String
|
|
36
|
+
from ._table import ColumnInfo, ColumnType, IndexedColumnInfo, Table
|
|
37
|
+
from ._tag import Tag
|
|
38
|
+
from ._timestamp import Timestamp
|
|
39
|
+
from ._writer import Writer, WriterData, WriterPushMode
|
|
40
|
+
|
|
41
|
+
__all__ = [
|
|
42
|
+
"BatchColumnInfo",
|
|
43
|
+
"TimeSeriesBatch",
|
|
44
|
+
"Blob",
|
|
45
|
+
"Cluster",
|
|
46
|
+
"QueryContinuous",
|
|
47
|
+
"Double",
|
|
48
|
+
"Entry",
|
|
49
|
+
"ExpirableEntry",
|
|
50
|
+
"Error",
|
|
51
|
+
"AliasAlreadyExistsError",
|
|
52
|
+
"AliasNotFoundError",
|
|
53
|
+
"AsyncPipelineFullError",
|
|
54
|
+
"IncompatibleTypeError",
|
|
55
|
+
"InputBufferTooSmallError",
|
|
56
|
+
"InternalLocalError",
|
|
57
|
+
"InvalidArgumentError",
|
|
58
|
+
"InvalidDatetimeError",
|
|
59
|
+
"InvalidHandleError",
|
|
60
|
+
"InvalidQueryError",
|
|
61
|
+
"NotImplementedError",
|
|
62
|
+
"OutOfBoundsError",
|
|
63
|
+
"TryAgainError",
|
|
64
|
+
"UninitializedError",
|
|
65
|
+
"Integer",
|
|
66
|
+
"DirectBlob",
|
|
67
|
+
"DirectInteger",
|
|
68
|
+
"Node",
|
|
69
|
+
"Options",
|
|
70
|
+
"Perf",
|
|
71
|
+
"FindQuery",
|
|
72
|
+
"Reader",
|
|
73
|
+
"RetryOptions",
|
|
74
|
+
"String",
|
|
75
|
+
"ColumnInfo",
|
|
76
|
+
"ColumnType",
|
|
77
|
+
"IndexedColumnInfo",
|
|
78
|
+
"Table",
|
|
79
|
+
"Tag",
|
|
80
|
+
"Timestamp",
|
|
81
|
+
"Writer",
|
|
82
|
+
"WriterData",
|
|
83
|
+
"WriterPushMode",
|
|
84
|
+
"metrics",
|
|
85
|
+
]
|
|
86
|
+
|
|
87
|
+
never_expires: datetime.datetime = ...
|
|
88
|
+
|
|
89
|
+
def build() -> str:
|
|
90
|
+
"""
|
|
91
|
+
Return build number
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
def version() -> str:
|
|
95
|
+
"""
|
|
96
|
+
Return version number
|
|
97
|
+
"""
|