fastmssql 0.1.3__cp312-cp312-win_amd64.whl → 0.1.6__cp312-cp312-win_amd64.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.cp312-win_amd64.pyd +0 -0
- {fastmssql-0.1.3.dist-info → fastmssql-0.1.6.dist-info}/METADATA +19 -23
- fastmssql-0.1.6.dist-info/RECORD +7 -0
- fastmssql-0.1.3.dist-info/RECORD +0 -7
- {fastmssql-0.1.3.dist-info → fastmssql-0.1.6.dist-info}/WHEEL +0 -0
- {fastmssql-0.1.3.dist-info → fastmssql-0.1.6.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.6
|
|
4
4
|
Classifier: Development Status :: 4 - Beta
|
|
5
5
|
Classifier: Intended Audience :: Developers
|
|
6
6
|
Classifier: License :: Other/Proprietary License
|
|
@@ -66,13 +66,22 @@ This library uses the high-performance **bb8 connection pool** which provides:
|
|
|
66
66
|
|
|
67
67
|
## Installation
|
|
68
68
|
|
|
69
|
+
### From PyPI (Recommended)
|
|
70
|
+
|
|
71
|
+
Install fastmssql using pip:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
pip install fastmssql
|
|
75
|
+
```
|
|
76
|
+
|
|
69
77
|
### Prerequisites
|
|
70
78
|
|
|
71
|
-
- Python 3.8
|
|
72
|
-
- Rust toolchain (for building from source)
|
|
79
|
+
- Python 3.8 to 3.12
|
|
73
80
|
- Microsoft SQL Server (any recent version)
|
|
74
81
|
|
|
75
|
-
### From Source
|
|
82
|
+
### From Source (Development)
|
|
83
|
+
|
|
84
|
+
If you want to build from source or contribute to development:
|
|
76
85
|
|
|
77
86
|
1. Clone the repository:
|
|
78
87
|
```bash
|
|
@@ -113,7 +122,7 @@ from mssql_python_rust import Connection
|
|
|
113
122
|
|
|
114
123
|
async def main():
|
|
115
124
|
# Connect to SQL Server using async context manager
|
|
116
|
-
connection_string = "Server=localhost;Database=master;
|
|
125
|
+
connection_string = "Server=localhost;Database=master;User Id=myuser;Password=mypass"
|
|
117
126
|
|
|
118
127
|
# Automatic connection pool management
|
|
119
128
|
async with Connection(connection_string) as conn:
|
|
@@ -140,7 +149,7 @@ from mssql_python_rust import Connection
|
|
|
140
149
|
|
|
141
150
|
async def main():
|
|
142
151
|
# Traditional connection string approach
|
|
143
|
-
connection_string = "Server=localhost;Database=master;
|
|
152
|
+
connection_string = "Server=localhost;Database=master;User Id=myuser;Password=mypass"
|
|
144
153
|
|
|
145
154
|
async with Connection(connection_string=connection_string) as conn:
|
|
146
155
|
result = await conn.execute("SELECT @@VERSION as version")
|
|
@@ -159,16 +168,6 @@ from mssql_python_rust import Connection
|
|
|
159
168
|
async def main():
|
|
160
169
|
# Using individual connection parameters
|
|
161
170
|
|
|
162
|
-
# Windows Authentication
|
|
163
|
-
async with Connection(
|
|
164
|
-
server="localhost",
|
|
165
|
-
database="master",
|
|
166
|
-
trusted_connection=True
|
|
167
|
-
) as conn:
|
|
168
|
-
result = await conn.execute("SELECT DB_NAME() as database")
|
|
169
|
-
for row in result.rows():
|
|
170
|
-
print(f"Connected to: {row['database']}")
|
|
171
|
-
|
|
172
171
|
# SQL Server Authentication
|
|
173
172
|
async with Connection(
|
|
174
173
|
server="localhost",
|
|
@@ -195,7 +194,7 @@ async def main():
|
|
|
195
194
|
# Using connection string
|
|
196
195
|
result = await mssql.execute(
|
|
197
196
|
"SELECT @@SERVERNAME as server",
|
|
198
|
-
connection_string="Server=localhost;Database=master;
|
|
197
|
+
connection_string="Server=localhost;Database=master;User Id=myuser;Password=mypass"
|
|
199
198
|
)
|
|
200
199
|
|
|
201
200
|
|
|
@@ -254,9 +253,6 @@ The bb8 connection pool provides significant performance improvements:
|
|
|
254
253
|
The library supports standard SQL Server connection string formats:
|
|
255
254
|
|
|
256
255
|
```python
|
|
257
|
-
# Windows Authentication
|
|
258
|
-
conn_str = "Server=localhost;Database=MyDB;Integrated Security=true"
|
|
259
|
-
|
|
260
256
|
# SQL Server Authentication
|
|
261
257
|
conn_str = "Server=localhost;Database=MyDB;User Id=sa;Password=MyPassword"
|
|
262
258
|
|
|
@@ -356,7 +352,7 @@ import time
|
|
|
356
352
|
from mssql_python_rust import Connection
|
|
357
353
|
|
|
358
354
|
async def performance_comparison():
|
|
359
|
-
connection_string = "Server=localhost;Database=test;
|
|
355
|
+
connection_string = "Server=localhost;Database=test;User Id=myuser;Password=mypass"
|
|
360
356
|
|
|
361
357
|
# Sequential async operations (still efficient with pool reuse)
|
|
362
358
|
start = time.time()
|
|
@@ -717,9 +713,9 @@ async def olap_operations():
|
|
|
717
713
|
### Common Issues
|
|
718
714
|
|
|
719
715
|
1. **Import Error**: Make sure you've built the extension with `maturin develop`
|
|
720
|
-
2. **Connection Fails**: Check your connection string and SQL Server configuration
|
|
716
|
+
2. **Connection Fails**: Check your connection string and SQL Server configuration. Note that Windows authentication is not supported - use SQL Server authentication with username and password.
|
|
721
717
|
3. **Build Errors**: Ensure you have the Rust toolchain installed
|
|
722
|
-
4. **
|
|
718
|
+
4. **Build Issues**: Make sure you have the Microsoft Visual C++ Build Tools on Windows
|
|
723
719
|
|
|
724
720
|
|
|
725
721
|
## Contributing
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
fastmssql-0.1.6.dist-info/METADATA,sha256=SOnLqE51M_Ouj_gmzfcnUegumnsr-jLeE1GWZZXh6Ds,26709
|
|
2
|
+
fastmssql-0.1.6.dist-info/WHEEL,sha256=HF3aUMilrtO42xS_fBzOVaPE8OtiNjP_RotLatII7HM,96
|
|
3
|
+
fastmssql-0.1.6.dist-info/licenses/LICENSE,sha256=sHV8b3wGLX_KE9w2JVnp80n-2hQphvBuBfCOlnH4ya0,4904
|
|
4
|
+
fastmssql/__init__.py,sha256=DxbJfaqDV2yuFLtNjXD18xS8_JcizitpdGiobNx5DZ8,625
|
|
5
|
+
fastmssql/fastmssql.py,sha256=cFkcZ_KJD6PMydAmq5NdTKxhlkof50Z98W0FKIXrzmI,26952
|
|
6
|
+
fastmssql/fastmssql_core.cp312-win_amd64.pyd,sha256=ueCEmab9bcDes99hoZzCFkKAiDgavQS3s7Dw_3FinVU,2746368
|
|
7
|
+
fastmssql-0.1.6.dist-info/RECORD,,
|
fastmssql-0.1.3.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
fastmssql-0.1.3.dist-info/METADATA,sha256=PFJVexmNiZ4cSZDy6f2292mVAGB3ltz_QNo9OQadpko,26856
|
|
2
|
-
fastmssql-0.1.3.dist-info/WHEEL,sha256=HF3aUMilrtO42xS_fBzOVaPE8OtiNjP_RotLatII7HM,96
|
|
3
|
-
fastmssql-0.1.3.dist-info/licenses/LICENSE,sha256=sHV8b3wGLX_KE9w2JVnp80n-2hQphvBuBfCOlnH4ya0,4904
|
|
4
|
-
fastmssql/__init__.py,sha256=DxbJfaqDV2yuFLtNjXD18xS8_JcizitpdGiobNx5DZ8,625
|
|
5
|
-
fastmssql/fastmssql.py,sha256=cFkcZ_KJD6PMydAmq5NdTKxhlkof50Z98W0FKIXrzmI,26952
|
|
6
|
-
fastmssql/fastmssql_core.cp312-win_amd64.pyd,sha256=DYb7ZcEkDvmFumzJNSk0t3S6Ixn9q68NIkyJatGxxKg,2747904
|
|
7
|
-
fastmssql-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|