atoti-client-directquery-mssql 0.9.0__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,24 @@
1
+ Metadata-Version: 2.1
2
+ Name: atoti-client-directquery-mssql
3
+ Version: 0.9.0
4
+ Summary: Code to use DirectQuery on Microsoft SQL Server
5
+ Home-page: https://www.atoti.io
6
+ License: Proprietary
7
+ Keywords: atoti,cloud,database,directquery,mssql
8
+ Author: ActiveViam
9
+ Author-email: dev@atoti.io
10
+ Requires-Python: >=3.10
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: License :: Free To Use But Restricted
13
+ Classifier: License :: Other/Proprietary License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Typing :: Typed
20
+ Requires-Dist: atoti-client (==0.9.0)
21
+ Requires-Dist: pydantic (>=2.6.0)
22
+ Requires-Dist: typing-extensions (>=4.6.1)
23
+ Project-URL: Bug Tracker, https://github.com/atoti/atoti/issues
24
+ Project-URL: Documentation, https://docs.atoti.io/0.9.0/api/atoti_directquery_mssql.html
@@ -0,0 +1,7 @@
1
+ atoti_directquery_mssql/__init__.py,sha256=MaDSBfU78mg0U6Aezr5dRI64Lo5qfynrA0rZwtXpF0I,228
2
+ atoti_directquery_mssql/connection_config.py,sha256=GM5Kkizt8Ew8fJgUC_G30qVpl5_pgAueqsaGuvfHMAw,1167
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.0.dist-info/METADATA,sha256=iKypdeQReoTlJjuVurtg_2Yp5-9bUcOjtDBJpYzeqGQ,989
6
+ atoti_client_directquery_mssql-0.9.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
7
+ atoti_client_directquery_mssql-0.9.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry-core 1.8.1
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,46 @@
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
+ ExternalDatabaseConnectionConfig,
7
+ PasswordConfig,
8
+ )
9
+ from pydantic.dataclasses import dataclass
10
+ from typing_extensions import override
11
+
12
+
13
+ @final
14
+ @dataclass(config=_PYDANTIC_CONFIG, frozen=True, kw_only=True)
15
+ class ConnectionConfig(
16
+ ExternalDatabaseConnectionConfig,
17
+ AutoMultiColumnArrayConversionConfig,
18
+ PasswordConfig,
19
+ ):
20
+ """Config to connect to a Microsoft SQL Server database.
21
+
22
+ See Also:
23
+ :class:`atoti_directquery_snowflake.ConnectionConfig` for an example.
24
+
25
+ """
26
+
27
+ url: str
28
+ """The JDBC connection string.
29
+
30
+ See https://learn.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver16 for more information.
31
+ """
32
+
33
+ @property
34
+ @override
35
+ def _database_key(self) -> str:
36
+ return "MS_SQL"
37
+
38
+ @property
39
+ @override
40
+ def _password(self) -> str | None:
41
+ return self.password
42
+
43
+ @property
44
+ @override
45
+ def _url(self) -> str | None:
46
+ 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`."""