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.
Files changed (45) hide show
  1. arrowsql/__init__.py +653 -0
  2. arrowsql/_rust_auth.py +170 -0
  3. arrowsql/_server_sqlstate.py +11 -0
  4. arrowsql/_utf8_strings.py +78 -0
  5. arrowsql/agent.py +620 -0
  6. arrowsql/aio.py +533 -0
  7. arrowsql/arrow_parallel.py +464 -0
  8. arrowsql/async_query/__init__.py +40 -0
  9. arrowsql/async_query/_connection_context.py +39 -0
  10. arrowsql/async_query/_native.py +24 -0
  11. arrowsql/async_query/async_connection.py +160 -0
  12. arrowsql/async_query/async_cursor.py +225 -0
  13. arrowsql/async_query/async_execute.py +113 -0
  14. arrowsql/async_query/async_fetch.py +153 -0
  15. arrowsql/async_query/exception_translator.py +132 -0
  16. arrowsql/auth.py +913 -0
  17. arrowsql/bulk_parallel.py +385 -0
  18. arrowsql/connection.py +2377 -0
  19. arrowsql/connection_string_builder.py +114 -0
  20. arrowsql/connection_string_parser.py +417 -0
  21. arrowsql/constants.py +701 -0
  22. arrowsql/cursor.py +4516 -0
  23. arrowsql/db_connection.py +98 -0
  24. arrowsql/ddbc_bindings.cp313-win_amd64.pyd +0 -0
  25. arrowsql/ddbc_bindings.pyi +283 -0
  26. arrowsql/decimal_config.py +98 -0
  27. arrowsql/exceptions.py +378 -0
  28. arrowsql/helpers.py +436 -0
  29. arrowsql/logging.py +700 -0
  30. arrowsql/mssql_python.pyi +579 -0
  31. arrowsql/odbc_provider.py +269 -0
  32. arrowsql/parameter_helper.py +442 -0
  33. arrowsql/perf_timer.py +286 -0
  34. arrowsql/pooling.py +147 -0
  35. arrowsql/py.typed +1 -0
  36. arrowsql/row.py +462 -0
  37. arrowsql/type.py +160 -0
  38. arrowsql-0.1.0.dist-info/METADATA +146 -0
  39. arrowsql-0.1.0.dist-info/RECORD +45 -0
  40. arrowsql-0.1.0.dist-info/WHEEL +4 -0
  41. arrowsql-0.1.0.dist-info/entry_points.txt +2 -0
  42. arrowsql-0.1.0.dist-info/licenses/LICENSE +21 -0
  43. arrowsql-0.1.0.dist-info/licenses/LICENSE.upstream-mssql-python +47 -0
  44. arrowsql-0.1.0.dist-info/sboms/ddbc_bindings.cyclonedx.json +5195 -0
  45. mssql_python/__init__.py +39 -0
@@ -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