chdb 3.0.0__cp312-cp312-macosx_10_15_x86_64.whl → 3.1.0__cp312-cp312-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 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', '0', '0')
22
+ chdb_version = ('3', '1', '0')
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__))
Binary file
chdb/dbapi/converters.py CHANGED
@@ -59,6 +59,7 @@ def escape_float(value, mapping=None):
59
59
 
60
60
  _escape_table = [chr(x) for x in range(128)]
61
61
  _escape_table[ord("'")] = u"''"
62
+ _escape_table[ord("\\")] = "\\\\"
62
63
 
63
64
 
64
65
  def _escape_unicode(value, mapping=None):
chdb/session/state.py CHANGED
@@ -51,7 +51,7 @@ class Session:
51
51
  )
52
52
  g_session.close()
53
53
  g_session_path = None
54
- if path is None:
54
+ if path is None or ":memory:" in path:
55
55
  self._cleanup = True
56
56
  self._path = tempfile.mkdtemp()
57
57
  else:
@@ -89,6 +89,9 @@ class Session:
89
89
  if self._conn is not None:
90
90
  self._conn.close()
91
91
  self._conn = None
92
+ global g_session, g_session_path
93
+ g_session = None
94
+ g_session_path = None
92
95
 
93
96
  def cleanup(self):
94
97
  try:
@@ -96,6 +99,9 @@ class Session:
96
99
  self._conn.close()
97
100
  self._conn = None
98
101
  shutil.rmtree(self._path)
102
+ global g_session, g_session_path
103
+ g_session = None
104
+ g_session_path = None
99
105
  except: # noqa
100
106
  pass
101
107
 
chdb/state/sqlitelike.py CHANGED
@@ -21,7 +21,7 @@ class Connection:
21
21
  self._cursor = Cursor(self._conn)
22
22
  return self._cursor
23
23
 
24
- def query(self, query: str, format: str = "ArrowStream") -> Any:
24
+ def query(self, query: str, format: str = "CSV") -> Any:
25
25
  return self._conn.query(query, format)
26
26
 
27
27
  def close(self) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: chdb
3
- Version: 3.0.0
3
+ Version: 3.1.0
4
4
  Summary: chDB is an in-process SQL OLAP Engine powered by ClickHouse
5
5
  Home-page: https://github.com/chdb-io/chdb
6
6
  Author: auxten
@@ -1,28 +1,28 @@
1
- chdb/__init__.py,sha256=YbIz0MIa1GMe8c4ZIhidKWk0Y9aYlxRjEmL48_WkGxo,3762
1
+ chdb/__init__.py,sha256=P2TgVZoELhpe-zVd_HLI9jlotBpIbtrjA5Cgi64Ap-M,3762
2
2
  chdb/__main__.py,sha256=xNNtDY38d973YM5dlxiIazcqqKhXJSpNb7JflyyrXGE,1185
3
- chdb/_chdb.cpython-312-darwin.so,sha256=2pA2TrT2CiENunL3gQQRTz4_WLcdHn7WkHmMk1cUgA0,422120792
3
+ chdb/_chdb.cpython-312-darwin.so,sha256=ZbRvB-rJn8Gk560cpkvt-bNEmwxRgqyuAhVd2bF0ULs,422103776
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
7
7
  chdb/dbapi/__init__.py,sha256=aaNhxXNBC1ZkFr260cbGR8msOinTp0VoNTT_j8AXGUc,2205
8
8
  chdb/dbapi/connections.py,sha256=4RBO0h-B149xEicE8cXSSJl9wpXa4FQMY_4SghgEvCw,2762
9
- chdb/dbapi/converters.py,sha256=qS9k0Kzo_vDQxnFtsJ_3pLjlTrBK09SfdWcXdxzIrtI,7413
9
+ chdb/dbapi/converters.py,sha256=0SDqgixUTCz0LtWke_HHzgF1lFJhpsQrR_-ky3b-JRY,7447
10
10
  chdb/dbapi/cursors.py,sha256=OXF36raoyI3MIC5SCQ5IvnCtbOnppga4Q1IKOt2EIsk,7920
11
11
  chdb/dbapi/err.py,sha256=kUI9-A8LNqBoMoo4jh2NFsLCOLoPEwh9YIuz_qMoLoM,2017
12
12
  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=rUxs6nOpnnvWIOeiXhp2jORlL54HNFQKcXKFbHIHH40,4134
16
+ chdb/session/state.py,sha256=nx9KlqZyPTHAflToXCJVRBUSMjJFvyh6x2akP7Gc7h0,4360
17
17
  chdb/state/__init__.py,sha256=RVUIWDqDi7gte4Os7Mz1wPXFyFpdHT_p1klJC7QtluI,55
18
- chdb/state/sqlitelike.py,sha256=AywMiyNNkfCyyeemMFmf5ZA5MEGtdc00L7O-LMYeU_8,4519
18
+ chdb/state/sqlitelike.py,sha256=-2bQRs6WDREr90pe8UtaYbQK-BWSkko1Ma8cLSzLUf4,4511
19
19
  chdb/udf/__init__.py,sha256=qSMaPEre7w1pYz8uJ-iZtuu8wYOUNRcI_8UNuaOymGE,80
20
20
  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.0.0.dist-info/LICENSE.txt,sha256=isYVtNCO5910aj6e9bJJ6kQceivkLqsMlFSNYwzGGKI,11366
25
- chdb-3.0.0.dist-info/METADATA,sha256=oQXLv1LD9kWGNyO9NLbf5G81DMvJEXvQOnDMV_PmiA0,19490
26
- chdb-3.0.0.dist-info/WHEEL,sha256=w8QvsOFuXAJCA3xzK5H0261kTnF2wLp_Eh0sq-4CTJY,111
27
- chdb-3.0.0.dist-info/top_level.txt,sha256=se0Jj0A2-ijfMW51hIjiuNyDJPqy5xJU1G8a_IEdllI,11
28
- chdb-3.0.0.dist-info/RECORD,,
24
+ chdb-3.1.0.dist-info/LICENSE.txt,sha256=isYVtNCO5910aj6e9bJJ6kQceivkLqsMlFSNYwzGGKI,11366
25
+ chdb-3.1.0.dist-info/METADATA,sha256=1Rgw8I9c27wfqXTiZWCT7-bL1DrqK9VoipeOCTCfJ2w,19490
26
+ chdb-3.1.0.dist-info/WHEEL,sha256=WwG8GhzU8lPzGk4nh1bVRKYWouDtELkQDIbBpHEc7_E,111
27
+ chdb-3.1.0.dist-info/top_level.txt,sha256=se0Jj0A2-ijfMW51hIjiuNyDJPqy5xJU1G8a_IEdllI,11
28
+ chdb-3.1.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-macosx_10_15_x86_64
5
5