arrowsql 0.1.0__cp313-cp313-win_amd64.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.
- arrowsql/__init__.py +653 -0
- arrowsql/_rust_auth.py +170 -0
- arrowsql/_server_sqlstate.py +11 -0
- arrowsql/_utf8_strings.py +78 -0
- arrowsql/agent.py +620 -0
- arrowsql/aio.py +533 -0
- arrowsql/arrow_parallel.py +464 -0
- arrowsql/async_query/__init__.py +40 -0
- arrowsql/async_query/_connection_context.py +39 -0
- arrowsql/async_query/_native.py +24 -0
- arrowsql/async_query/async_connection.py +160 -0
- arrowsql/async_query/async_cursor.py +225 -0
- arrowsql/async_query/async_execute.py +113 -0
- arrowsql/async_query/async_fetch.py +153 -0
- arrowsql/async_query/exception_translator.py +132 -0
- arrowsql/auth.py +913 -0
- arrowsql/bulk_parallel.py +385 -0
- arrowsql/connection.py +2377 -0
- arrowsql/connection_string_builder.py +114 -0
- arrowsql/connection_string_parser.py +417 -0
- arrowsql/constants.py +701 -0
- arrowsql/cursor.py +4516 -0
- arrowsql/db_connection.py +98 -0
- arrowsql/ddbc_bindings.cp313-win_amd64.pyd +0 -0
- arrowsql/ddbc_bindings.pyi +283 -0
- arrowsql/decimal_config.py +98 -0
- arrowsql/exceptions.py +378 -0
- arrowsql/helpers.py +436 -0
- arrowsql/logging.py +700 -0
- arrowsql/mssql_python.pyi +579 -0
- arrowsql/odbc_provider.py +269 -0
- arrowsql/parameter_helper.py +442 -0
- arrowsql/perf_timer.py +286 -0
- arrowsql/pooling.py +147 -0
- arrowsql/py.typed +1 -0
- arrowsql/row.py +462 -0
- arrowsql/type.py +160 -0
- arrowsql-0.1.0.dist-info/METADATA +146 -0
- arrowsql-0.1.0.dist-info/RECORD +45 -0
- arrowsql-0.1.0.dist-info/WHEEL +4 -0
- arrowsql-0.1.0.dist-info/entry_points.txt +2 -0
- arrowsql-0.1.0.dist-info/licenses/LICENSE +21 -0
- arrowsql-0.1.0.dist-info/licenses/LICENSE.upstream-mssql-python +47 -0
- arrowsql-0.1.0.dist-info/sboms/ddbc_bindings.cyclonedx.json +5195 -0
- mssql_python/__init__.py +39 -0
mssql_python/__init__.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Compatibility alias: ``import mssql_python`` loads :mod:`arrowsql`.
|
|
2
|
+
|
|
3
|
+
``mssql_python`` and every ``mssql_python.X`` are the same module objects as
|
|
4
|
+
``arrowsql`` and ``arrowsql.X``, so code written for microsoft/mssql-python
|
|
5
|
+
(imports, ``isinstance`` checks, monkeypatching) runs unchanged.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import importlib
|
|
9
|
+
import importlib.util
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
_PREFIX = __name__ + "."
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class _Alias:
|
|
16
|
+
"""Meta-path finder and loader (no importlib.abc: it imports tempfile)."""
|
|
17
|
+
|
|
18
|
+
def find_spec(self, fullname, path=None, target=None):
|
|
19
|
+
if fullname.startswith(_PREFIX):
|
|
20
|
+
return importlib.util.spec_from_loader(fullname, self)
|
|
21
|
+
return None
|
|
22
|
+
|
|
23
|
+
def create_module(self, spec):
|
|
24
|
+
return importlib.import_module("arrowsql." + spec.name[len(_PREFIX):])
|
|
25
|
+
|
|
26
|
+
def exec_module(self, module):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
sys.meta_path.insert(0, _Alias())
|
|
31
|
+
import arrowsql # noqa: E402
|
|
32
|
+
|
|
33
|
+
# Register the submodules arrowsql already loaded. Importing one through the
|
|
34
|
+
# finder would set it on the package again and shadow a same-named function
|
|
35
|
+
# (``arrowsql.pooling`` is a function that hides the ``pooling`` module).
|
|
36
|
+
for _name, _module in list(sys.modules.items()):
|
|
37
|
+
if _name.startswith("arrowsql."):
|
|
38
|
+
sys.modules.setdefault(_PREFIX + _name[len("arrowsql."):], _module)
|
|
39
|
+
sys.modules[__name__] = arrowsql
|