crate 2.0.0.dev0__tar.gz → 2.0.0.dev2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/PKG-INFO +1 -1
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate/client/__init__.py +1 -1
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate/client/http.py +9 -5
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate.egg-info/PKG-INFO +1 -1
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/CHANGES.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/CONTRIBUTING.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/DEVELOP.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/LICENSE +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/MANIFEST.in +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/NOTICE +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/README.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/_extra/robots.txt +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/backlog.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/blobs.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/by-example/blob.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/by-example/client.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/by-example/connection.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/by-example/cursor.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/by-example/http.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/by-example/https.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/by-example/index.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/conf.py +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/connect.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/data-types.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/docutils.conf +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/getting-started.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/index-all.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/index.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/other-options.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/query.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/requirements.txt +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/docs/sqlalchemy.rst +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/pyproject.toml +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/requirements.txt +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/setup.cfg +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/setup.py +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate/client/_pep440.py +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate/client/blob.py +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate/client/connection.py +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate/client/converter.py +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate/client/cursor.py +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate/client/exceptions.py +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate/testing/__init__.py +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate/testing/layer.py +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate/testing/util.py +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate.egg-info/SOURCES.txt +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate.egg-info/dependency_links.txt +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate.egg-info/requires.txt +0 -0
- {crate-2.0.0.dev0 → crate-2.0.0.dev2}/src/crate.egg-info/top_level.txt +0 -0
@@ -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,
|
347
|
-
)
|
351
|
+
return json_dumps(data)
|
348
352
|
|
349
353
|
|
350
354
|
def _get_socket_opts(
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|