chdb 3.3.0__cp311-cp311-macosx_10_15_x86_64.whl → 3.4.1__cp311-cp311-macosx_10_15_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 chdb might be problematic. Click here for more details.
- chdb/__init__.py +1 -1
- chdb/_chdb.cpython-311-darwin.so +0 -0
- chdb/session/state.py +3 -15
- {chdb-3.3.0.dist-info → chdb-3.4.1.dist-info}/METADATA +1 -1
- {chdb-3.3.0.dist-info → chdb-3.4.1.dist-info}/RECORD +8 -8
- {chdb-3.3.0.dist-info → chdb-3.4.1.dist-info}/WHEEL +0 -0
- {chdb-3.3.0.dist-info → chdb-3.4.1.dist-info}/licenses/LICENSE.txt +0 -0
- {chdb-3.3.0.dist-info → chdb-3.4.1.dist-info}/top_level.txt +0 -0
chdb/__init__.py
CHANGED
|
@@ -19,7 +19,7 @@ _process_result_format_funs = {
|
|
|
19
19
|
# UDF script path will be f"{g_udf_path}/{func_name}.py"
|
|
20
20
|
g_udf_path = ""
|
|
21
21
|
|
|
22
|
-
chdb_version = ('3', '
|
|
22
|
+
chdb_version = ('3', '4', '1')
|
|
23
23
|
if sys.version_info[:2] >= (3, 7):
|
|
24
24
|
# get the path of the current file
|
|
25
25
|
current_path = os.path.dirname(os.path.abspath(__file__))
|
chdb/_chdb.cpython-311-darwin.so
CHANGED
|
Binary file
|
chdb/session/state.py
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import tempfile
|
|
2
|
-
import shutil
|
|
3
1
|
import warnings
|
|
4
2
|
|
|
5
3
|
import chdb
|
|
@@ -51,11 +49,9 @@ class Session:
|
|
|
51
49
|
)
|
|
52
50
|
g_session.close()
|
|
53
51
|
g_session_path = None
|
|
54
|
-
if path is None
|
|
55
|
-
self.
|
|
56
|
-
self._path = tempfile.mkdtemp()
|
|
52
|
+
if path is None:
|
|
53
|
+
self._path = ":memory:"
|
|
57
54
|
else:
|
|
58
|
-
self._cleanup = False
|
|
59
55
|
self._path = path
|
|
60
56
|
if chdb.g_udf_path != "":
|
|
61
57
|
self._udf_path = chdb.g_udf_path
|
|
@@ -84,8 +80,6 @@ class Session:
|
|
|
84
80
|
self.close()
|
|
85
81
|
|
|
86
82
|
def close(self):
|
|
87
|
-
if self._cleanup:
|
|
88
|
-
self.cleanup()
|
|
89
83
|
if self._conn is not None:
|
|
90
84
|
self._conn.close()
|
|
91
85
|
self._conn = None
|
|
@@ -95,13 +89,7 @@ class Session:
|
|
|
95
89
|
|
|
96
90
|
def cleanup(self):
|
|
97
91
|
try:
|
|
98
|
-
|
|
99
|
-
self._conn.close()
|
|
100
|
-
self._conn = None
|
|
101
|
-
shutil.rmtree(self._path)
|
|
102
|
-
global g_session, g_session_path
|
|
103
|
-
g_session = None
|
|
104
|
-
g_session_path = None
|
|
92
|
+
self.close()
|
|
105
93
|
except: # noqa
|
|
106
94
|
pass
|
|
107
95
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
chdb/__init__.py,sha256=
|
|
1
|
+
chdb/__init__.py,sha256=KjR7cb7QFtjCqvasu81WQvX-2LeHjx-rSB3preiRefI,3762
|
|
2
2
|
chdb/__main__.py,sha256=xNNtDY38d973YM5dlxiIazcqqKhXJSpNb7JflyyrXGE,1185
|
|
3
|
-
chdb/_chdb.cpython-311-darwin.so,sha256=
|
|
3
|
+
chdb/_chdb.cpython-311-darwin.so,sha256=KtO9vCmaHpDwYzCVu8mHhizNBYUVIFOG9cIEWk65F4c,411160252
|
|
4
4
|
chdb/rwabc.py,sha256=tbiwCrXirfrfx46wCJxS64yvFe6pVWIPGdSuvrAL5Ys,2102
|
|
5
5
|
chdb/dataframe/__init__.py,sha256=1_mrZZiJwqBTnH_P8_FCbbYXIWWY5sxnaFpe3-tDLF4,680
|
|
6
6
|
chdb/dataframe/query.py,sha256=ggvE8A5vtabFg9gSTp99S7LCrnIEwbWtb-PtJVT8Ct0,12759
|
|
@@ -13,7 +13,7 @@ chdb/dbapi/times.py,sha256=_qXgDaYwsHntvpIKSKXp1rrYIgtq6Z9pLyLnO2XNoL0,360
|
|
|
13
13
|
chdb/dbapi/constants/FIELD_TYPE.py,sha256=ytFzgAnGmb9hvdsBlnK68qdZv_a6jYFIXT6VSAb60z8,370
|
|
14
14
|
chdb/dbapi/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
chdb/session/__init__.py,sha256=fCUROZ5L1-92o2lcASiWJpFu-80-kDoSrNfouLEmLg8,50
|
|
16
|
-
chdb/session/state.py,sha256=
|
|
16
|
+
chdb/session/state.py,sha256=m7K9zZtoMQTlh-pfmSyJV38pAe6eHNTPtOvlHYrImhA,4436
|
|
17
17
|
chdb/state/__init__.py,sha256=RVUIWDqDi7gte4Os7Mz1wPXFyFpdHT_p1klJC7QtluI,55
|
|
18
18
|
chdb/state/sqlitelike.py,sha256=v0xh9jWirHzhDVq26C2213LxfaDbRulSAhSHaTiZ24c,12283
|
|
19
19
|
chdb/udf/__init__.py,sha256=qSMaPEre7w1pYz8uJ-iZtuu8wYOUNRcI_8UNuaOymGE,80
|
|
@@ -21,8 +21,8 @@ chdb/udf/udf.py,sha256=z0A1RmyZrx55bykpvvS-LpVt1lMrQOexjvU5zxCdCSA,3935
|
|
|
21
21
|
chdb/utils/__init__.py,sha256=tXRcwBRGW2YQNBZWV4Mitw5QlCu_qlSRCjllw15XHbs,171
|
|
22
22
|
chdb/utils/trace.py,sha256=W-pvDoKlnzq6H_7FiWjr5_teN40UNE4E5--zbUrjOIc,2511
|
|
23
23
|
chdb/utils/types.py,sha256=MGLFIjoDvu7Uc2Wy8EDY60jjue66HmMPxbhrujjrZxQ,7530
|
|
24
|
-
chdb-3.
|
|
25
|
-
chdb-3.
|
|
26
|
-
chdb-3.
|
|
27
|
-
chdb-3.
|
|
28
|
-
chdb-3.
|
|
24
|
+
chdb-3.4.1.dist-info/licenses/LICENSE.txt,sha256=isYVtNCO5910aj6e9bJJ6kQceivkLqsMlFSNYwzGGKI,11366
|
|
25
|
+
chdb-3.4.1.dist-info/METADATA,sha256=uFmfdxDkm0eBkLJcMsBKZdxjfRrPccIOjYHBxmPw2mQ,24690
|
|
26
|
+
chdb-3.4.1.dist-info/WHEEL,sha256=oczYY8K5AD9v1jpLsEt3xv9rRXEAEN9GScjngWcX1Vw,111
|
|
27
|
+
chdb-3.4.1.dist-info/top_level.txt,sha256=se0Jj0A2-ijfMW51hIjiuNyDJPqy5xJU1G8a_IEdllI,11
|
|
28
|
+
chdb-3.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|