crate 2.0.0.dev1__py3-none-any.whl → 2.0.0.dev2__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- crate/client/__init__.py +1 -1
- crate/client/http.py +9 -5
- {crate-2.0.0.dev1.dist-info → crate-2.0.0.dev2.dist-info}/METADATA +1 -1
- {crate-2.0.0.dev1.dist-info → crate-2.0.0.dev2.dist-info}/RECORD +8 -8
- {crate-2.0.0.dev1.dist-info → crate-2.0.0.dev2.dist-info}/LICENSE +0 -0
- {crate-2.0.0.dev1.dist-info → crate-2.0.0.dev2.dist-info}/NOTICE +0 -0
- {crate-2.0.0.dev1.dist-info → crate-2.0.0.dev2.dist-info}/WHEEL +0 -0
- {crate-2.0.0.dev1.dist-info → crate-2.0.0.dev2.dist-info}/top_level.txt +0 -0
crate/client/__init__.py
CHANGED
crate/client/http.py
CHANGED
@@ -113,6 +113,14 @@ def cratedb_json_encoder(obj):
|
|
113
113
|
return obj
|
114
114
|
|
115
115
|
|
116
|
+
def json_dumps(obj):
|
117
|
+
return orjson.dumps(
|
118
|
+
obj,
|
119
|
+
default=cratedb_json_encoder,
|
120
|
+
option=(orjson.OPT_PASSTHROUGH_DATETIME | orjson.OPT_SERIALIZE_NUMPY),
|
121
|
+
)
|
122
|
+
|
123
|
+
|
116
124
|
class Server:
|
117
125
|
def __init__(self, server, **pool_kw):
|
118
126
|
socket_options = _get_socket_opts(
|
@@ -340,11 +348,7 @@ def _create_sql_payload(stmt, args, bulk_args):
|
|
340
348
|
data["args"] = args
|
341
349
|
if bulk_args:
|
342
350
|
data["bulk_args"] = bulk_args
|
343
|
-
return
|
344
|
-
data,
|
345
|
-
default=cratedb_json_encoder,
|
346
|
-
option=(orjson.OPT_PASSTHROUGH_DATETIME | orjson.OPT_SERIALIZE_NUMPY),
|
347
|
-
)
|
351
|
+
return json_dumps(data)
|
348
352
|
|
349
353
|
|
350
354
|
def _get_socket_opts(
|
@@ -1,17 +1,17 @@
|
|
1
|
-
crate/client/__init__.py,sha256=
|
1
|
+
crate/client/__init__.py,sha256=bPFAwXu5r6Ixg-TLjyWAZjdhmGzJAmmHMspCJJWROAY,1349
|
2
2
|
crate/client/_pep440.py,sha256=iwY5wopxbgbwsT0ImANrwN3V_ZYQHhSr7lEdVT5dQRM,42
|
3
3
|
crate/client/blob.py,sha256=aMo6ZNHGT3Zq_yR3gcpd3CKrJvfqUAhExhKtHUwC5Io,3460
|
4
4
|
crate/client/connection.py,sha256=80v9_--YilDAaIQpejf3G_TWGz9iwUkixwHAL66sDm0,8098
|
5
5
|
crate/client/converter.py,sha256=Qci0MNcpz1jAnjquG8Ld9LI84_iHVInrv4HMb8r5zzg,4313
|
6
6
|
crate/client/cursor.py,sha256=Mlk-TVLzM4zSSr7GxcHK4Mjbt1KQeMfNFNrPBtGjk-c,10741
|
7
7
|
crate/client/exceptions.py,sha256=wMyJmOB3RP5kuPeW9f0fEb-1AKZcGSTyIGvN0HqpqUw,2557
|
8
|
-
crate/client/http.py,sha256=
|
8
|
+
crate/client/http.py,sha256=3mRxwsWVo9GQrfTyJg2afoSkFf9XcJYpUEuSQHyQIEs,22785
|
9
9
|
crate/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
crate/testing/layer.py,sha256=jvHRWTRE4Zal211UO0HWPFcbprAcaGB3WyAUDR7BKFQ,13376
|
11
11
|
crate/testing/util.py,sha256=BPEZ8DavXwyOTCmOQnP5QjQlapEw3harzKK4w2HOTA4,3264
|
12
|
-
crate-2.0.0.
|
13
|
-
crate-2.0.0.
|
14
|
-
crate-2.0.0.
|
15
|
-
crate-2.0.0.
|
16
|
-
crate-2.0.0.
|
17
|
-
crate-2.0.0.
|
12
|
+
crate-2.0.0.dev2.dist-info/LICENSE,sha256=s_w3FXmAYQuatqsgvyYLnGyC_13KOqp3W1DUEXO9RpY,10175
|
13
|
+
crate-2.0.0.dev2.dist-info/METADATA,sha256=DX03qlTAaczXjO5IFQG8Ty_memt0_zM58f93bivKB5w,5655
|
14
|
+
crate-2.0.0.dev2.dist-info/NOTICE,sha256=jfWOHkoZKjNATGXMfgpMJdL38ki_ZZTgR6M9CUUJxrM,1159
|
15
|
+
crate-2.0.0.dev2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
16
|
+
crate-2.0.0.dev2.dist-info/top_level.txt,sha256=2wP2HlpxdhgTLMl9ipi168xkm6FMq9_2bf0xGGxF_OI,6
|
17
|
+
crate-2.0.0.dev2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|