singlestoredb 0.8.3__cp36-abi3-macosx_10_9_universal2.whl → 0.8.5__cp36-abi3-macosx_10_9_universal2.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 singlestoredb might be problematic. Click here for more details.

Binary file
singlestoredb/__init__.py CHANGED
@@ -13,7 +13,7 @@ Examples
13
13
 
14
14
  """
15
15
 
16
- __version__ = '0.8.3'
16
+ __version__ = '0.8.5'
17
17
 
18
18
  from .alchemy import create_engine
19
19
  from .config import options, get_option, set_option, describe_option
@@ -96,7 +96,7 @@ def cast_bool_param(val: Any) -> bool:
96
96
  if val.lower() in ['on', 't', 'true', 'y', 'yes', 'enabled', 'enable']:
97
97
  return True
98
98
  elif val.lower() in ['off', 'f', 'false', 'n', 'no', 'disabled', 'disable']:
99
- return True
99
+ return False
100
100
 
101
101
  raise ValueError('Unrecognized value for bool: {}'.format(val))
102
102
 
@@ -457,7 +457,7 @@ class Cursor(connection.Cursor):
457
457
 
458
458
  self._expect_results = False
459
459
  sql_type = 'exec'
460
- if re.match(r'^\s*(select|show|call|echo)\s+', oper, flags=re.I):
460
+ if re.match(r'^\s*(select|show|call|echo|describe)\s+', oper, flags=re.I):
461
461
  self._expect_results = True
462
462
  sql_type = 'query'
463
463
 
@@ -76,16 +76,16 @@ class TestConnection(unittest.TestCase):
76
76
  assert cbp('enable') is True, cbp('enable')
77
77
  assert cbp('enabled') is True, cbp('enabled')
78
78
 
79
- assert cbp('false') is True, cbp('false')
80
- assert cbp('f') is True, cbp('f')
81
- assert cbp('False') is True, cbp('False')
82
- assert cbp('F') is True, cbp('F')
83
- assert cbp('FALSE') is True, cbp('FALSE')
84
-
85
- assert cbp('off') is True, cbp('off')
86
- assert cbp('no') is True, cbp('no')
87
- assert cbp('disable') is True, cbp('disable')
88
- assert cbp('disabled') is True, cbp('disabled')
79
+ assert cbp('false') is False, cbp('false')
80
+ assert cbp('f') is False, cbp('f')
81
+ assert cbp('False') is False, cbp('False')
82
+ assert cbp('F') is False, cbp('F')
83
+ assert cbp('FALSE') is False, cbp('FALSE')
84
+
85
+ assert cbp('off') is False, cbp('off')
86
+ assert cbp('no') is False, cbp('no')
87
+ assert cbp('disable') is False, cbp('disable')
88
+ assert cbp('disabled') is False, cbp('disabled')
89
89
 
90
90
  with self.assertRaises(ValueError):
91
91
  cbp('nein')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: singlestoredb
3
- Version: 0.8.3
3
+ Version: 0.8.5
4
4
  Summary: Interface to the SingleStore database and cluster management APIs
5
5
  Home-page: https://github.com/singlestore-labs/singlestoredb-python
6
6
  Author: SingleStore
@@ -1,21 +1,21 @@
1
- _singlestoredb_accel.abi3.so,sha256=p3eQhUftIEhmGNd5hrj85XS27_nEtwBQWAIt69cByNM,155053
2
- singlestoredb-0.8.3.dist-info/RECORD,,
3
- singlestoredb-0.8.3.dist-info/LICENSE,sha256=Mlq78idURT-9G026aMYswwwnnrLcgzTLuXeAs5hjDLM,11341
4
- singlestoredb-0.8.3.dist-info/WHEEL,sha256=L_8uSJgNH7VmiqwHcew_IFGyTcruK-C2YxnyqVh4uE0,113
5
- singlestoredb-0.8.3.dist-info/top_level.txt,sha256=SDtemIXf-Kp-_F2f_S6x0db33cHGOILdAEsIQZe2LZc,35
6
- singlestoredb-0.8.3.dist-info/METADATA,sha256=th65G94aHUi7GvlkDcJbvP7-ia60HFKB0-14cxHRRHE,7606
1
+ _singlestoredb_accel.abi3.so,sha256=ja0-l0cebGvGcFdL51Xsgh3CXmRIfADIk0CIyvM6W_Y,155053
2
+ singlestoredb-0.8.5.dist-info/RECORD,,
3
+ singlestoredb-0.8.5.dist-info/LICENSE,sha256=Mlq78idURT-9G026aMYswwwnnrLcgzTLuXeAs5hjDLM,11341
4
+ singlestoredb-0.8.5.dist-info/WHEEL,sha256=L_8uSJgNH7VmiqwHcew_IFGyTcruK-C2YxnyqVh4uE0,113
5
+ singlestoredb-0.8.5.dist-info/top_level.txt,sha256=SDtemIXf-Kp-_F2f_S6x0db33cHGOILdAEsIQZe2LZc,35
6
+ singlestoredb-0.8.5.dist-info/METADATA,sha256=xO3r1oS3zO0MvrJgdd7eEceRxjbrILieB-f2Rzs8Vc0,7606
7
7
  singlestoredb/auth.py,sha256=u8D9tpKzrqa4ssaHjyZnGDX1q8XBpGtuoOkTkSv7B28,7599
8
8
  singlestoredb/config.py,sha256=mOFIvpyAj09GPgnh_PyEUpq1s05RsBOkQRECEUWD3Lg,6785
9
- singlestoredb/__init__.py,sha256=bHruyTkkkCWcnZS5QFMiDmIBBVjJh5FYygqyju7poA4,877
9
+ singlestoredb/__init__.py,sha256=YkklYpURD5rQDACXE7IRn4ajmQLhiCmlTGPAn2Ean9c,877
10
10
  singlestoredb/types.py,sha256=FIqO1A7e0Gkk7ITmIysBy-P5S--ItbMSlYvblzqGS30,9969
11
- singlestoredb/connection.py,sha256=kTJFWmvDDqS-rDXc-GDf0qrACgR9nIOAvn8_VIEjNA8,43849
11
+ singlestoredb/connection.py,sha256=cYOfrLODKXGNr0Eq4Hqh_qFhdjb5cpciR7TTQXa4bMk,43850
12
12
  singlestoredb/exceptions.py,sha256=HiHRMO36MT06RM-LfURlA6AadCiQtnOodxJtZorKJzU,2459
13
13
  singlestoredb/converters.py,sha256=aH_QhLr94i9_AjvcplTar0HfX2yi53KGxHHzJc7lSU0,12515
14
14
  singlestoredb/tests/test.sql,sha256=wobtFAT0l9mf0EV_BQhhNeIaGJvCP4w2qbJQ5uS7e_8,9030
15
15
  singlestoredb/tests/test_xdict.py,sha256=fqHspoi39nbX3fIDVkkRXcd5H50xdOsSvK0bxAMQnaE,10408
16
16
  singlestoredb/tests/test_results.py,sha256=5S4M6gK69HZnYV7O9I2Onx9gfZpUi52RD4Jm7ETahxo,6582
17
17
  singlestoredb/tests/test_basics.py,sha256=4sTZ5bq3LQxGI-AhbqCAZ1VUSYxLSbfUKGLfbHrsztg,43652
18
- singlestoredb/tests/test_connection.py,sha256=Qay7_oNl0EQahipZZZCAiLOcsQwL4OEtGmc_rnQ-eLM,50732
18
+ singlestoredb/tests/test_connection.py,sha256=RiE_NATLYPiMR5jWaBlcP5YddwitS6dzOHOVVOVXCSI,50741
19
19
  singlestoredb/tests/test_exceptions.py,sha256=tfr_8X2w1UmG4nkSBzWGB0C7ehrf1GAVgj6_ODaG-TM,1131
20
20
  singlestoredb/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  singlestoredb/tests/test_management.py,sha256=bLCmRJcHbkOZLIc7vZYLrSHzamn66d_bdn-Ez3nKRMs,9795
@@ -39,7 +39,7 @@ singlestoredb/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
39
39
  singlestoredb/utils/xdict.py,sha256=S9HKgrPrnu_6b7iOwa2KrW8CmU1Uqx0BWdEyogFzWbE,12896
40
40
  singlestoredb/utils/debug.py,sha256=0JiLA37u_9CKiDGiN9BK_PtFMUku3vIcNjERWaTNRSU,349
41
41
  singlestoredb/http/__init__.py,sha256=A_2ZUCCpvRYIA6YDpPy57wL5R1eZ5SfP6I1To5nfJ2s,912
42
- singlestoredb/http/connection.py,sha256=srkTygxJMcvjgPNz-65Ys5LbIC1WRSrUv0EUvOmp334,32296
42
+ singlestoredb/http/connection.py,sha256=OcgrfldkUQaC9h2Vzz0oaPrkaoDf_WWTqc6PSPeZdUQ,32305
43
43
  singlestoredb/mysql/protocol.py,sha256=F7OImNQtumq4oNcNHAHo5H6Nj0oTvJhnM7w75U995Cc,12081
44
44
  singlestoredb/mysql/cursors.py,sha256=aWs4AzmeZJJltOmUU3GZNBWgod9nqnnFW5OHVquz5t0,21246
45
45
  singlestoredb/mysql/__init__.py,sha256=rrpuvKqM8HTGYtlFnQQjRvRWGF52fOrvWM5mnPFhyI8,4363