sqllocks-shape-sqlserver 0.9.1__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,51 @@
1
+ Metadata-Version: 2.4
2
+ Name: sqllocks-shape-sqlserver
3
+ Version: 0.9.1
4
+ Summary: Shape plugin: SQL Server, Azure SQL and Fabric SQL database profiling and source
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://github.com/sqllocks/shape
7
+ Project-URL: Repository, https://github.com/sqllocks/shape
8
+ Project-URL: Issues, https://github.com/sqllocks/shape/issues
9
+ Project-URL: Documentation, https://github.com/sqllocks/shape/tree/main/plugins/shape-sqlserver
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3 :: Only
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Topic :: Database
18
+ Requires-Python: >=3.11
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: sqllocks-shape==0.9.1
22
+ Requires-Dist: pyodbc>=5.0
23
+ Provides-Extra: entra
24
+ Requires-Dist: azure-identity>=1.16.1; extra == "entra"
25
+ Dynamic: license-file
26
+
27
+ # sqllocks-shape-sqlserver
28
+
29
+ Shape plugin for SQL Server, Azure SQL and Fabric SQL (warehouse and SQL database).
30
+
31
+ - **`shape profile-db`**: profile a database schema into a `.shape` profile. The catalog views
32
+ give exact primary keys, foreign keys, types and row counts; a sample of rows per table
33
+ (1000 by default) gives the distributions.
34
+ - **`mssql://` source**: read one table as Arrow record batches (`shape.sources`).
35
+ - **Writing** to a live SQL Server (the `sqlserver` sink, `mssql://` URIs, bulk insert) is in
36
+ `shape-fabric`, which builds on this plugin: see its README.
37
+ - **Shared helpers** for other SQL Server code (such as `shape-fabric`): `shape_sqlserver.sql`
38
+ (identifier quoting, connection strings and their redaction, catalog queries, type maps) and
39
+ `shape_sqlserver.auth` (SQL logins and Microsoft Entra tokens).
40
+
41
+ ```bash
42
+ pip install 'sqllocks-shape[sqlserver]' # also: sqllocks-shape-sqlserver[entra]
43
+ shape profile-db --server myserver.database.windows.net --database shop --auth cli \
44
+ --schema dbo -o shop.shape
45
+ ```
46
+
47
+ You also need the Microsoft ODBC Driver 18 for SQL Server (and unixODBC on Linux).
48
+ The full guide is `docs/plugins/sqlserver.md` in the repository.
49
+
50
+ Its version always equals core's (`sqllocks-shape`), and it is released together with core.
51
+ How plugins are written: `docs/plugins/authoring.md`.
@@ -0,0 +1,14 @@
1
+ shape_sqlserver/__init__.py,sha256=eRvOJccwsJL379d_PUWDqLvQjE2_YDI60Bj8uDzm_Xo,851
2
+ shape_sqlserver/auth.py,sha256=6QlhB9JmmWUGdLUufpI_JJ-tpmV-7OIZZANh2H2QZKI,5246
3
+ shape_sqlserver/catalog.py,sha256=hgyHQw17WTQfkla5vCM9pJ1M6gS_62L_xcUqa0HwXKk,6507
4
+ shape_sqlserver/command.py,sha256=7Y_yISj_A3ZCCdieO8cI58KYGycGhPC9QQqDyPB37do,4473
5
+ shape_sqlserver/profiler.py,sha256=ni8aTMthHNDSKtGKIWMniY08fsGMoCx_CQ4jsaEWilI,18036
6
+ shape_sqlserver/source.py,sha256=qjM_YjQEenL8cxMC2nvHci1ENpgLnG4y2xlukZujJeQ,7484
7
+ shape_sqlserver/sql.py,sha256=Ybw-K6ifxevFVzxRmrRcsKJafHz0yGd_BWXjZatvaYI,12220
8
+ shape_sqlserver/testing.py,sha256=RttMpgcaY8gKyKvjlW5DBtlMCxETsQoFC2H-ZVVd6Hw,30068
9
+ sqllocks_shape_sqlserver-0.9.1.dist-info/licenses/LICENSE,sha256=L2XrogFVEmj79aNZynmGdvuz48XmpxefhfcAPHE7f1E,1089
10
+ sqllocks_shape_sqlserver-0.9.1.dist-info/METADATA,sha256=PJi2iW-BNMvO9VRufBnroUsIJh--wr254rttovwuiPE,2447
11
+ sqllocks_shape_sqlserver-0.9.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
12
+ sqllocks_shape_sqlserver-0.9.1.dist-info/entry_points.txt,sha256=-3-PBdCWsYmbsemuHG45DSJHDxwn4kgsxKPYe5tx9Ug,120
13
+ sqllocks_shape_sqlserver-0.9.1.dist-info/top_level.txt,sha256=pbVlBmIcmLL5OKUvATxkG7sHVHcgvWS8EcP0HCg_EIg,16
14
+ sqllocks_shape_sqlserver-0.9.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,5 @@
1
+ [shape.commands]
2
+ profile-db = shape_sqlserver:ProfileDbCommand
3
+
4
+ [shape.sources]
5
+ mssql = shape_sqlserver:SqlServerSource
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-2026 SQLLocks (Jonathan Stewart)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ shape_sqlserver