atoti-client-directquery-mssql 0.9.3__py3-none-any.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.
@@ -0,0 +1,18 @@
1
+ Metadata-Version: 2.4
2
+ Name: atoti-client-directquery-mssql
3
+ Version: 0.9.3
4
+ Summary: Code to use DirectQuery on Microsoft SQL Server
5
+ Project-URL: Documentation, https://docs.atoti.io/0.9.3/api/atoti_directquery_mssql.html
6
+ Project-URL: Homepage, https://www.atoti.io
7
+ Project-URL: Issues, https://github.com/atoti/atoti/issues
8
+ Author-email: ActiveViam <dev@atoti.io>
9
+ Keywords: atoti,cloud,database,directquery,mssql
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: License :: Free for non-commercial use
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Typing :: Typed
15
+ Requires-Python: >=3.10
16
+ Requires-Dist: atoti-client==0.9.3
17
+ Requires-Dist: pydantic>=2.10.1
18
+ Requires-Dist: typing-extensions>=4.12.2
@@ -0,0 +1,7 @@
1
+ atoti_directquery_mssql/__init__.py,sha256=MaDSBfU78mg0U6Aezr5dRI64Lo5qfynrA0rZwtXpF0I,228
2
+ atoti_directquery_mssql/connection_config.py,sha256=7AhafNNbLSJHnjTBPt5x_Ngj6i3lbYTD7pHvx2RvM5M,1622
3
+ atoti_directquery_mssql/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ atoti_directquery_mssql/table_config.py,sha256=7CadjwF-k-7tHYTagkWNDNE4yWF0gkIy94zPxphHZsc,525
5
+ atoti_client_directquery_mssql-0.9.3.dist-info/METADATA,sha256=7Nv4QLbZ_bMXjrzISzNJmNR3AFHejaIhj0MTusvowZ0,761
6
+ atoti_client_directquery_mssql-0.9.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ atoti_client_directquery_mssql-0.9.3.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,4 @@
1
+ """Code to use DirectQuery with `Microsoft SQL Server <https://www.microsoft.com/en-us/sql-server>`__."""
2
+
3
+ from .connection_config import ConnectionConfig as ConnectionConfig
4
+ from .table_config import TableConfig as TableConfig
@@ -0,0 +1,65 @@
1
+ from typing import final
2
+
3
+ from atoti._pydantic import PYDANTIC_CONFIG as _PYDANTIC_CONFIG
4
+ from atoti.directquery._external_database_connection_config import (
5
+ AutoMultiColumnArrayConversionConfig,
6
+ EmulatedTimeTravelConfig,
7
+ ExternalDatabaseConnectionConfig,
8
+ PasswordConfig,
9
+ )
10
+ from pydantic.dataclasses import dataclass
11
+ from typing_extensions import override
12
+
13
+
14
+ @final
15
+ @dataclass(config=_PYDANTIC_CONFIG, frozen=True, kw_only=True)
16
+ class ConnectionConfig(
17
+ ExternalDatabaseConnectionConfig,
18
+ AutoMultiColumnArrayConversionConfig,
19
+ PasswordConfig,
20
+ ):
21
+ """Config to connect to a Microsoft SQL Server database.
22
+
23
+ See Also:
24
+ :class:`atoti_directquery_snowflake.ConnectionConfig` for an example.
25
+
26
+ """
27
+
28
+ url: str
29
+ """The JDBC connection string.
30
+
31
+ See https://learn.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver16 for more information.
32
+ """
33
+
34
+ time_travel: EmulatedTimeTravelConfig | None = None
35
+ """Optional configuration for emulated time-travel.
36
+
37
+ :meta private:
38
+ """
39
+
40
+ @property
41
+ @override
42
+ def _database_key(self) -> str:
43
+ return "MS_SQL"
44
+
45
+ @property
46
+ @override
47
+ def _options(self) -> dict[str, str]:
48
+ return {
49
+ **super()._options,
50
+ **(
51
+ self.time_travel._emulated_time_travel_options
52
+ if self.time_travel
53
+ else {}
54
+ ),
55
+ }
56
+
57
+ @property
58
+ @override
59
+ def _password(self) -> str | None:
60
+ return self.password
61
+
62
+ @property
63
+ @override
64
+ def _url(self) -> str | None:
65
+ return self.url
File without changes
@@ -0,0 +1,19 @@
1
+ from typing import final
2
+
3
+ from atoti._pydantic import PYDANTIC_CONFIG as _PYDANTIC_CONFIG
4
+ from atoti.directquery._external_table_config import (
5
+ ArrayConversionConfig,
6
+ ExternalTableConfig,
7
+ )
8
+ from pydantic.dataclasses import dataclass
9
+
10
+ from .connection_config import ConnectionConfig
11
+
12
+
13
+ @final
14
+ @dataclass(config=_PYDANTIC_CONFIG, frozen=True, kw_only=True)
15
+ class TableConfig(
16
+ ExternalTableConfig[ConnectionConfig],
17
+ ArrayConversionConfig,
18
+ ):
19
+ """Config passed to :meth:`~atoti.Session.add_external_table`."""