fastmssql 0.3.5__cp312-cp312-manylinux_2_28_x86_64.whl → 0.3.7__cp312-cp312-manylinux_2_28_x86_64.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.

Potentially problematic release.


This version of fastmssql might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastmssql
3
- Version: 0.3.5
3
+ Version: 0.3.7
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
@@ -9,7 +9,6 @@ Classifier: Operating System :: Microsoft :: Windows
9
9
  Classifier: Operating System :: POSIX :: Linux
10
10
  Classifier: Operating System :: MacOS
11
11
  Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.8
13
12
  Classifier: Programming Language :: Python :: 3.9
14
13
  Classifier: Programming Language :: Python :: 3.10
15
14
  Classifier: Programming Language :: Python :: 3.11
@@ -27,7 +26,7 @@ License-File: LICENSE
27
26
  Summary: A high-performance async Python library for Microsoft SQL Server built on Rust for heavy workloads and low latency.
28
27
  Author-email: Riveranda <riverb514@gmail.com>
29
28
  License: GPL-3.0-or-later OR Commercial
30
- Requires-Python: >=3.8
29
+ Requires-Python: >=3.9
31
30
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
32
31
  Project-URL: Homepage, https://github.com/Rivendael/FastMssql
33
32
  Project-URL: Repository, https://github.com/Rivendael/FastMssql
@@ -40,30 +39,18 @@ FastMSSQL is an async Python library for Microsoft SQL Server (MSSQL), built in
40
39
  Unlike pyodbc or pymssql, it uses a native SQL Server client—no ODBC required—simplifying installation on Windows, macOS, and Linux.
41
40
  Great for data ingestion, bulk inserts, and large-scale query workloads.
42
41
 
43
- [![PyPI](https://img.shields.io/pypi/v/fastmssql)](https://pypi.org/project/fastmssql/)
44
42
  [![Python Versions](https://img.shields.io/pypi/pyversions/fastmssql)](https://pypi.org/project/fastmssql/)
45
- [![Rust Backend](https://img.shields.io/badge/backend-rust-orange)](https://github.com/Rivendael/pymssql-rs)
46
- [![Async](https://img.shields.io/badge/async-tokio-blue)](https://github.com/Rivendael/pymssql-rs)
47
- [![License](https://img.shields.io/badge/license-GPL--3.0%20or%20Commercial-green)](LICENSE)
43
+ [![Python 3.14 Experimental](https://img.shields.io/badge/python-3.14%20experimental-yellow)](https://github.com/Rivendael/fastmssql)
48
44
 
45
+ [![License](https://img.shields.io/badge/license-GPL--3.0%20or%20Commercial-green)](LICENSE)
49
46
 
47
+ [![Unit Tests](https://github.com/Rivendael/fastmssql/actions/workflows/unittests.yml/badge.svg)](https://github.com/Rivendael/fastmssql/actions/workflows/build.yml)
50
48
 
51
- ## Contents
49
+ [![Latest Release](https://img.shields.io/github/v/release/Rivendael/fastmssql)](https://github.com/Rivendael/fastmssql/releases)
52
50
 
53
- - Features
54
- - Installation
55
- - Quick start
56
- - Usage
57
- - Connection options
58
- - Working with data (query vs execute)
59
- - Connection pooling
60
- - SSL/TLS
61
- - Performance tips
62
- - Examples & benchmarks
63
- - Troubleshooting
64
- - Contributing
65
- - License
51
+ [![Platform](https://img.shields.io/badge/platform-Windows%20|%20Linux%20|%20macOS-lightgrey)](https://github.com/Rivendael/fastmssql)
66
52
 
53
+ [![Rust Backend](https://img.shields.io/badge/backend-rust-orange)](https://github.com/Rivendael/pymssql-rs)
67
54
 
68
55
  ## Features
69
56
 
@@ -140,7 +127,35 @@ async def main():
140
127
  asyncio.run(main())
141
128
  ```
142
129
 
130
+ ## Explicit Connection Management
131
+
132
+ When not utilizing Python's context manager (async with), **FastMssql** uses *lazy connection initialization*:
133
+ if you call `query()` or `execute()` on a new `Connection`, the underlying pool is created if not already present.
143
134
 
135
+ For more control, you can explicitly connect and disconnect:
136
+
137
+ ```python
138
+ import asyncio
139
+ from fastmssql import Connection
140
+
141
+ async def main():
142
+ conn_str = "Server=localhost;Database=master;User Id=myuser;Password=mypass"
143
+ conn = Connection(conn_str)
144
+
145
+ # Explicitly connect
146
+ await conn.connect()
147
+ assert await conn.is_connected()
148
+
149
+ # Run queries
150
+ result = await conn.query("SELECT 42 as answer")
151
+ print(result.rows()[0]["answer"]) # -> 42
152
+
153
+ # Explicitly disconnect
154
+ await conn.disconnect()
155
+ assert not await conn.is_connected()
156
+
157
+ asyncio.run(main())
158
+ ```
144
159
  ## Usage
145
160
 
146
161
  ### Connection options
@@ -0,0 +1,6 @@
1
+ fastmssql/__init__.py,sha256=H2sCgkVlgRo3oIbejLqnHUIsFCqcbJIc20TJ4CCPkQo,43543
2
+ fastmssql/fastmssql.cpython-312-x86_64-linux-gnu.so,sha256=zSh_-qxpACquTm6gu6kWfXQNgb-KeQqMUDLOqL_U5d8,2635024
3
+ fastmssql-0.3.7.dist-info/METADATA,sha256=34-QdIea-avSA3Z_cPiaHEJvyZ8E48aeJDToaPa_nCw,13364
4
+ fastmssql-0.3.7.dist-info/WHEEL,sha256=rvGpbXyeA3GAwOUZBQZDWC3tWzI85sHPL_iJNPFO5UA,109
5
+ fastmssql-0.3.7.dist-info/RECORD,,
6
+ fastmssql-0.3.7.dist-info/licenses/LICENSE,sha256=OHj2nKice3tSk2Us200EWXDpwDKtAzeOu4NF4rwg5gk,33858
@@ -1,6 +0,0 @@
1
- fastmssql/__init__.py,sha256=H2sCgkVlgRo3oIbejLqnHUIsFCqcbJIc20TJ4CCPkQo,43543
2
- fastmssql/fastmssql.cpython-312-x86_64-linux-gnu.so,sha256=f4i7gC8ZtVD3m6eMaJare3jtJJXETx6e4U-3VDeyIqY,2606352
3
- fastmssql-0.3.5.dist-info/METADATA,sha256=TRFFzjXftcC7pIT545HvBnDXCudyYue8WNAgKg7hyp4,12431
4
- fastmssql-0.3.5.dist-info/WHEEL,sha256=rvGpbXyeA3GAwOUZBQZDWC3tWzI85sHPL_iJNPFO5UA,109
5
- fastmssql-0.3.5.dist-info/RECORD,,
6
- fastmssql-0.3.5.dist-info/licenses/LICENSE,sha256=OHj2nKice3tSk2Us200EWXDpwDKtAzeOu4NF4rwg5gk,33858