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