fastmssql 0.3.5__cp312-cp312-manylinux_2_28_aarch64.whl → 0.3.7__cp312-cp312-manylinux_2_28_aarch64.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.
- fastmssql/fastmssql.cpython-312-aarch64-linux-gnu.so +0 -0
- {fastmssql-0.3.5.dist-info → fastmssql-0.3.7.dist-info}/METADATA +36 -21
- fastmssql-0.3.7.dist-info/RECORD +6 -0
- fastmssql-0.3.5.dist-info/RECORD +0 -6
- {fastmssql-0.3.5.dist-info → fastmssql-0.3.7.dist-info}/WHEEL +0 -0
- {fastmssql-0.3.5.dist-info → fastmssql-0.3.7.dist-info}/licenses/LICENSE +0 -0
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastmssql
|
|
3
|
-
Version: 0.3.
|
|
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.
|
|
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
|
-
[](https://pypi.org/project/fastmssql/)
|
|
44
42
|
[](https://pypi.org/project/fastmssql/)
|
|
45
|
-
[](https://github.com/Rivendael/pymssql-rs)
|
|
47
|
-
[](LICENSE)
|
|
43
|
+
[](https://github.com/Rivendael/fastmssql)
|
|
48
44
|
|
|
45
|
+
[](LICENSE)
|
|
49
46
|
|
|
47
|
+
[](https://github.com/Rivendael/fastmssql/actions/workflows/build.yml)
|
|
50
48
|
|
|
51
|
-
|
|
49
|
+
[](https://github.com/Rivendael/fastmssql/releases)
|
|
52
50
|
|
|
53
|
-
-
|
|
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
|
+
[](https://github.com/Rivendael/fastmssql)
|
|
66
52
|
|
|
53
|
+
[](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-aarch64-linux-gnu.so,sha256=TUSGa7FvH4KICpYvJeLGKRtrUOLCxzgWWwYs5ScNUOk,2381000
|
|
3
|
+
fastmssql-0.3.7.dist-info/METADATA,sha256=34-QdIea-avSA3Z_cPiaHEJvyZ8E48aeJDToaPa_nCw,13364
|
|
4
|
+
fastmssql-0.3.7.dist-info/WHEEL,sha256=Ii8jgWkQgKpDt9su44VyQxJ_VOC0lzHS24RbJ8RoOtg,110
|
|
5
|
+
fastmssql-0.3.7.dist-info/RECORD,,
|
|
6
|
+
fastmssql-0.3.7.dist-info/licenses/LICENSE,sha256=OHj2nKice3tSk2Us200EWXDpwDKtAzeOu4NF4rwg5gk,33858
|
fastmssql-0.3.5.dist-info/RECORD
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
fastmssql/__init__.py,sha256=H2sCgkVlgRo3oIbejLqnHUIsFCqcbJIc20TJ4CCPkQo,43543
|
|
2
|
-
fastmssql/fastmssql.cpython-312-aarch64-linux-gnu.so,sha256=lUnuoT7Yfl_-IfYcDmV66nkHf1L9RQRseliOzr1YRe8,2315464
|
|
3
|
-
fastmssql-0.3.5.dist-info/METADATA,sha256=TRFFzjXftcC7pIT545HvBnDXCudyYue8WNAgKg7hyp4,12431
|
|
4
|
-
fastmssql-0.3.5.dist-info/WHEEL,sha256=Ii8jgWkQgKpDt9su44VyQxJ_VOC0lzHS24RbJ8RoOtg,110
|
|
5
|
-
fastmssql-0.3.5.dist-info/RECORD,,
|
|
6
|
-
fastmssql-0.3.5.dist-info/licenses/LICENSE,sha256=OHj2nKice3tSk2Us200EWXDpwDKtAzeOu4NF4rwg5gk,33858
|
|
File without changes
|
|
File without changes
|