fastmssql 0.1.6__cp312-cp312-macosx_11_0_arm64.whl → 0.1.8__cp312-cp312-macosx_11_0_arm64.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-darwin.so +0 -0
- {fastmssql-0.1.6.dist-info → fastmssql-0.1.8.dist-info}/METADATA +10 -43
- fastmssql-0.1.8.dist-info/RECORD +7 -0
- fastmssql-0.1.6.dist-info/RECORD +0 -7
- {fastmssql-0.1.6.dist-info → fastmssql-0.1.8.dist-info}/WHEEL +0 -0
- {fastmssql-0.1.6.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
|
|
@@ -182,32 +168,13 @@ async def main():
|
|
|
182
168
|
asyncio.run(main())
|
|
183
169
|
```
|
|
184
170
|
|
|
185
|
-
#### 3. Convenience Functions
|
|
186
|
-
|
|
187
|
-
```python
|
|
188
|
-
import asyncio
|
|
189
|
-
import mssql_python_rust as mssql
|
|
190
|
-
|
|
191
|
-
async def main():
|
|
192
|
-
# Execute queries without manual connection management
|
|
193
|
-
|
|
194
|
-
# Using connection string
|
|
195
|
-
result = await mssql.execute(
|
|
196
|
-
"SELECT @@SERVERNAME as server",
|
|
197
|
-
connection_string="Server=localhost;Database=master;User Id=myuser;Password=mypass"
|
|
198
|
-
)
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
asyncio.run(main())
|
|
202
|
-
```
|
|
203
|
-
|
|
204
171
|
### Connection Pool Configuration
|
|
205
172
|
|
|
206
173
|
Configure the connection pool for your specific needs:
|
|
207
174
|
|
|
208
175
|
```python
|
|
209
176
|
import asyncio
|
|
210
|
-
from
|
|
177
|
+
from fastmssql import Connection, PoolConfig
|
|
211
178
|
|
|
212
179
|
async def main():
|
|
213
180
|
# Custom pool configuration
|
|
@@ -267,7 +234,7 @@ conn_str = "Server=tcp:myserver.database.windows.net,1433;Database=MyDB;User Id=
|
|
|
267
234
|
|
|
268
235
|
```python
|
|
269
236
|
import asyncio
|
|
270
|
-
from
|
|
237
|
+
from fastmssql import Connection
|
|
271
238
|
|
|
272
239
|
async def main():
|
|
273
240
|
async with Connection(connection_string) as conn:
|
|
@@ -310,7 +277,7 @@ Full async/await support with automatic connection pool management:
|
|
|
310
277
|
|
|
311
278
|
```python
|
|
312
279
|
import asyncio
|
|
313
|
-
from
|
|
280
|
+
from fastmssql import Connection
|
|
314
281
|
|
|
315
282
|
async def main():
|
|
316
283
|
connection_string = "Server=localhost;Database=test;Integrated Security=true"
|
|
@@ -349,7 +316,7 @@ The bb8 connection pool dramatically improves performance, especially under load
|
|
|
349
316
|
```python
|
|
350
317
|
import asyncio
|
|
351
318
|
import time
|
|
352
|
-
from
|
|
319
|
+
from fastmssql import Connection
|
|
353
320
|
|
|
354
321
|
async def performance_comparison():
|
|
355
322
|
connection_string = "Server=localhost;Database=test;User Id=myuser;Password=mypass"
|
|
@@ -625,7 +592,7 @@ async with mssql.connect_async(conn_str) as conn:
|
|
|
625
592
|
### Custom Pool Configuration for Different Scenarios
|
|
626
593
|
|
|
627
594
|
```python
|
|
628
|
-
from
|
|
595
|
+
from fastmssql import Connection, PoolConfig
|
|
629
596
|
|
|
630
597
|
# High-load web application
|
|
631
598
|
web_config = PoolConfig(
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
fastmssql-0.1.8.dist-info/METADATA,sha256=uftNePykCvqRHscMiuW6PDL882wtbMGiRtEwjW-cT5A,25099
|
|
2
|
+
fastmssql-0.1.8.dist-info/WHEEL,sha256=EhaWXx4fd8VOPM6W-6pxsePGk73OLk2gBi7fwS90pc8,104
|
|
3
|
+
fastmssql-0.1.8.dist-info/licenses/LICENSE,sha256=NwufX3BNj7RvVtnrshWhkpFOLvWc_YVpGpr3UZGFz_E,4765
|
|
4
|
+
fastmssql/__init__.py,sha256=Sfm-Ven3d_G4dhitAIhWkL9ox-JqXue23nl3-HveA74,607
|
|
5
|
+
fastmssql/fastmssql.py,sha256=kdRlcP-eFWVlcggsmHM33Y7MDZDa8qiIto0r3lsdGr0,26247
|
|
6
|
+
fastmssql/fastmssql_core.cpython-312-darwin.so,sha256=AMcodvtsFRnrZIyBqUufudSZVSyrcQhOAeFLiw5xU6s,3015936
|
|
7
|
+
fastmssql-0.1.8.dist-info/RECORD,,
|
fastmssql-0.1.6.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
fastmssql-0.1.6.dist-info/METADATA,sha256=nQ4ydWRdckihS-mdqzo6_UU-qWqZoE_gQ2Zd1Kv0Fv0,25969
|
|
2
|
-
fastmssql-0.1.6.dist-info/WHEEL,sha256=EhaWXx4fd8VOPM6W-6pxsePGk73OLk2gBi7fwS90pc8,104
|
|
3
|
-
fastmssql-0.1.6.dist-info/licenses/LICENSE,sha256=NwufX3BNj7RvVtnrshWhkpFOLvWc_YVpGpr3UZGFz_E,4765
|
|
4
|
-
fastmssql/__init__.py,sha256=Sfm-Ven3d_G4dhitAIhWkL9ox-JqXue23nl3-HveA74,607
|
|
5
|
-
fastmssql/fastmssql.py,sha256=kdRlcP-eFWVlcggsmHM33Y7MDZDa8qiIto0r3lsdGr0,26247
|
|
6
|
-
fastmssql/fastmssql_core.cpython-312-darwin.so,sha256=DJ8yRW0yDeF3HUTDzX74RVVzAh52RRJlm23l1-oT2NE,3015888
|
|
7
|
-
fastmssql-0.1.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|