fastmssql 0.1.7__cp312-cp312-manylinux_2_34_x86_64.whl → 0.1.8__cp312-cp312-manylinux_2_34_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.
- fastmssql/fastmssql_core.cpython-312-x86_64-linux-gnu.so +0 -0
- {fastmssql-0.1.7.dist-info → fastmssql-0.1.8.dist-info}/METADATA +10 -24
- {fastmssql-0.1.7.dist-info → fastmssql-0.1.8.dist-info}/RECORD +5 -5
- {fastmssql-0.1.7.dist-info → fastmssql-0.1.8.dist-info}/WHEEL +0 -0
- {fastmssql-0.1.7.dist-info → fastmssql-0.1.8.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.1.
|
|
3
|
+
Version: 0.1.8
|
|
4
4
|
Classifier: Development Status :: 4 - Beta
|
|
5
5
|
Classifier: Intended Audience :: Developers
|
|
6
6
|
Classifier: License :: Other/Proprietary License
|
|
@@ -27,6 +27,7 @@ Author-email: Riveranda <riverb514@gmail.com>
|
|
|
27
27
|
License: PolyForm Noncommercial License 1.0.0
|
|
28
28
|
Requires-Python: >=3.8
|
|
29
29
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
30
|
+
Project-URL: Homepage, https://github.com/Rivendael/pymssql-rs
|
|
30
31
|
|
|
31
32
|
|
|
32
33
|
# Fastmssql
|
|
@@ -55,15 +56,6 @@ This library uses the high-performance **bb8 connection pool** which provides:
|
|
|
55
56
|
- **Thread Safety**: Safe concurrent access from multiple threads
|
|
56
57
|
- **Resource Management**: Automatic connection cleanup and lifecycle management
|
|
57
58
|
|
|
58
|
-
### Performance Improvements
|
|
59
|
-
|
|
60
|
-
| Scenario | Single Connection | With Pool | Improvement |
|
|
61
|
-
|----------|-------------------|-----------|-------------|
|
|
62
|
-
| Sequential queries | Recreate each time | Reuse connections | **2-3x faster** |
|
|
63
|
-
| Concurrent operations | Serialized access | Parallel execution | **5-10x faster** |
|
|
64
|
-
| High-throughput workloads | Connection bottleneck | Pool scaling | **10-20x faster** |
|
|
65
|
-
|
|
66
|
-
|
|
67
59
|
## Installation
|
|
68
60
|
|
|
69
61
|
### From PyPI (Recommended)
|
|
@@ -102,12 +94,6 @@ pip install maturin
|
|
|
102
94
|
|
|
103
95
|
4. Build and install the package:
|
|
104
96
|
```bash
|
|
105
|
-
# On Windows
|
|
106
|
-
build.bat
|
|
107
|
-
|
|
108
|
-
# On Unix-like systems
|
|
109
|
-
./build.sh
|
|
110
|
-
|
|
111
97
|
# Or manually
|
|
112
98
|
maturin develop --release
|
|
113
99
|
```
|
|
@@ -118,7 +104,7 @@ maturin develop --release
|
|
|
118
104
|
|
|
119
105
|
```python
|
|
120
106
|
import asyncio
|
|
121
|
-
from
|
|
107
|
+
from fastmssql import Connection
|
|
122
108
|
|
|
123
109
|
async def main():
|
|
124
110
|
# Connect to SQL Server using async context manager
|
|
@@ -145,7 +131,7 @@ The library supports two ways to connect to SQL Server:
|
|
|
145
131
|
|
|
146
132
|
```python
|
|
147
133
|
import asyncio
|
|
148
|
-
from
|
|
134
|
+
from fastmssql import Connection
|
|
149
135
|
|
|
150
136
|
async def main():
|
|
151
137
|
# Traditional connection string approach
|
|
@@ -163,7 +149,7 @@ asyncio.run(main())
|
|
|
163
149
|
|
|
164
150
|
```python
|
|
165
151
|
import asyncio
|
|
166
|
-
from
|
|
152
|
+
from fastmssql import Connection
|
|
167
153
|
|
|
168
154
|
async def main():
|
|
169
155
|
# Using individual connection parameters
|
|
@@ -188,7 +174,7 @@ Configure the connection pool for your specific needs:
|
|
|
188
174
|
|
|
189
175
|
```python
|
|
190
176
|
import asyncio
|
|
191
|
-
from
|
|
177
|
+
from fastmssql import Connection, PoolConfig
|
|
192
178
|
|
|
193
179
|
async def main():
|
|
194
180
|
# Custom pool configuration
|
|
@@ -248,7 +234,7 @@ conn_str = "Server=tcp:myserver.database.windows.net,1433;Database=MyDB;User Id=
|
|
|
248
234
|
|
|
249
235
|
```python
|
|
250
236
|
import asyncio
|
|
251
|
-
from
|
|
237
|
+
from fastmssql import Connection
|
|
252
238
|
|
|
253
239
|
async def main():
|
|
254
240
|
async with Connection(connection_string) as conn:
|
|
@@ -291,7 +277,7 @@ Full async/await support with automatic connection pool management:
|
|
|
291
277
|
|
|
292
278
|
```python
|
|
293
279
|
import asyncio
|
|
294
|
-
from
|
|
280
|
+
from fastmssql import Connection
|
|
295
281
|
|
|
296
282
|
async def main():
|
|
297
283
|
connection_string = "Server=localhost;Database=test;Integrated Security=true"
|
|
@@ -330,7 +316,7 @@ The bb8 connection pool dramatically improves performance, especially under load
|
|
|
330
316
|
```python
|
|
331
317
|
import asyncio
|
|
332
318
|
import time
|
|
333
|
-
from
|
|
319
|
+
from fastmssql import Connection
|
|
334
320
|
|
|
335
321
|
async def performance_comparison():
|
|
336
322
|
connection_string = "Server=localhost;Database=test;User Id=myuser;Password=mypass"
|
|
@@ -606,7 +592,7 @@ async with mssql.connect_async(conn_str) as conn:
|
|
|
606
592
|
### Custom Pool Configuration for Different Scenarios
|
|
607
593
|
|
|
608
594
|
```python
|
|
609
|
-
from
|
|
595
|
+
from fastmssql import Connection, PoolConfig
|
|
610
596
|
|
|
611
597
|
# High-load web application
|
|
612
598
|
web_config = PoolConfig(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
fastmssql-0.1.
|
|
2
|
-
fastmssql-0.1.
|
|
3
|
-
fastmssql-0.1.
|
|
1
|
+
fastmssql-0.1.8.dist-info/METADATA,sha256=uftNePykCvqRHscMiuW6PDL882wtbMGiRtEwjW-cT5A,25099
|
|
2
|
+
fastmssql-0.1.8.dist-info/WHEEL,sha256=r0WGOp9Si1GMtIT6KGShdYs6d8uozFtaOJLSf_y5IKk,108
|
|
3
|
+
fastmssql-0.1.8.dist-info/licenses/LICENSE,sha256=NwufX3BNj7RvVtnrshWhkpFOLvWc_YVpGpr3UZGFz_E,4765
|
|
4
4
|
fastmssql.libs/libcrypto-fca80f7e.so.3,sha256=W_nlaWqqwVjQDsWInJhX2p9JmjaaaejiK8SAyNGxANo,5463233
|
|
5
5
|
fastmssql.libs/libssl-e50e007b.so.3,sha256=CG4oarhB5Xu4VTrq1CwcT9ydUaV5LflnrNtckZkdyIQ,750633
|
|
6
6
|
fastmssql/__init__.py,sha256=Sfm-Ven3d_G4dhitAIhWkL9ox-JqXue23nl3-HveA74,607
|
|
7
7
|
fastmssql/fastmssql.py,sha256=kdRlcP-eFWVlcggsmHM33Y7MDZDa8qiIto0r3lsdGr0,26247
|
|
8
|
-
fastmssql/fastmssql_core.cpython-312-x86_64-linux-gnu.so,sha256=
|
|
9
|
-
fastmssql-0.1.
|
|
8
|
+
fastmssql/fastmssql_core.cpython-312-x86_64-linux-gnu.so,sha256=Zm54iKZ1E1-Bxmbdp4J-a8U4i-fS_KCp9Dqn3GUYL44,3420809
|
|
9
|
+
fastmssql-0.1.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|