fastmssql 0.1.2__cp312-cp312-win_amd64.whl → 0.1.5__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.2.dist-info → fastmssql-0.1.5.dist-info}/METADATA +7 -20
- fastmssql-0.1.5.dist-info/RECORD +7 -0
- {fastmssql-0.1.2.dist-info → fastmssql-0.1.5.dist-info}/WHEEL +1 -1
- fastmssql-0.1.2.dist-info/RECORD +0 -7
- {fastmssql-0.1.2.dist-info → fastmssql-0.1.5.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.5
|
|
4
4
|
Classifier: Development Status :: 4 - Beta
|
|
5
5
|
Classifier: Intended Audience :: Developers
|
|
6
6
|
Classifier: License :: Other/Proprietary License
|
|
@@ -113,7 +113,7 @@ from mssql_python_rust import Connection
|
|
|
113
113
|
|
|
114
114
|
async def main():
|
|
115
115
|
# Connect to SQL Server using async context manager
|
|
116
|
-
connection_string = "Server=localhost;Database=master;
|
|
116
|
+
connection_string = "Server=localhost;Database=master;User Id=myuser;Password=mypass"
|
|
117
117
|
|
|
118
118
|
# Automatic connection pool management
|
|
119
119
|
async with Connection(connection_string) as conn:
|
|
@@ -140,7 +140,7 @@ from mssql_python_rust import Connection
|
|
|
140
140
|
|
|
141
141
|
async def main():
|
|
142
142
|
# Traditional connection string approach
|
|
143
|
-
connection_string = "Server=localhost;Database=master;
|
|
143
|
+
connection_string = "Server=localhost;Database=master;User Id=myuser;Password=mypass"
|
|
144
144
|
|
|
145
145
|
async with Connection(connection_string=connection_string) as conn:
|
|
146
146
|
result = await conn.execute("SELECT @@VERSION as version")
|
|
@@ -159,16 +159,6 @@ from mssql_python_rust import Connection
|
|
|
159
159
|
async def main():
|
|
160
160
|
# Using individual connection parameters
|
|
161
161
|
|
|
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
162
|
# SQL Server Authentication
|
|
173
163
|
async with Connection(
|
|
174
164
|
server="localhost",
|
|
@@ -195,7 +185,7 @@ async def main():
|
|
|
195
185
|
# Using connection string
|
|
196
186
|
result = await mssql.execute(
|
|
197
187
|
"SELECT @@SERVERNAME as server",
|
|
198
|
-
connection_string="Server=localhost;Database=master;
|
|
188
|
+
connection_string="Server=localhost;Database=master;User Id=myuser;Password=mypass"
|
|
199
189
|
)
|
|
200
190
|
|
|
201
191
|
|
|
@@ -254,9 +244,6 @@ The bb8 connection pool provides significant performance improvements:
|
|
|
254
244
|
The library supports standard SQL Server connection string formats:
|
|
255
245
|
|
|
256
246
|
```python
|
|
257
|
-
# Windows Authentication
|
|
258
|
-
conn_str = "Server=localhost;Database=MyDB;Integrated Security=true"
|
|
259
|
-
|
|
260
247
|
# SQL Server Authentication
|
|
261
248
|
conn_str = "Server=localhost;Database=MyDB;User Id=sa;Password=MyPassword"
|
|
262
249
|
|
|
@@ -356,7 +343,7 @@ import time
|
|
|
356
343
|
from mssql_python_rust import Connection
|
|
357
344
|
|
|
358
345
|
async def performance_comparison():
|
|
359
|
-
connection_string = "Server=localhost;Database=test;
|
|
346
|
+
connection_string = "Server=localhost;Database=test;User Id=myuser;Password=mypass"
|
|
360
347
|
|
|
361
348
|
# Sequential async operations (still efficient with pool reuse)
|
|
362
349
|
start = time.time()
|
|
@@ -717,9 +704,9 @@ async def olap_operations():
|
|
|
717
704
|
### Common Issues
|
|
718
705
|
|
|
719
706
|
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
|
|
707
|
+
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
708
|
3. **Build Errors**: Ensure you have the Rust toolchain installed
|
|
722
|
-
4. **
|
|
709
|
+
4. **Build Issues**: Make sure you have the Microsoft Visual C++ Build Tools on Windows
|
|
723
710
|
|
|
724
711
|
|
|
725
712
|
## Contributing
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
fastmssql-0.1.5.dist-info/METADATA,sha256=iZAWYEQA2BdPkHXEPNLl2GMf0DSZHZLhulpBY9C_mcc,26574
|
|
2
|
+
fastmssql-0.1.5.dist-info/WHEEL,sha256=HF3aUMilrtO42xS_fBzOVaPE8OtiNjP_RotLatII7HM,96
|
|
3
|
+
fastmssql-0.1.5.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=KX_4UAla7FlDB0oL3bVOgmamctEGVoTQ6zaYW7WoJXA,2746368
|
|
7
|
+
fastmssql-0.1.5.dist-info/RECORD,,
|
fastmssql-0.1.2.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
fastmssql-0.1.2.dist-info/METADATA,sha256=eJlsC20D6xFeEfl0MaE_JwfOAlJjXqAHCF_I_nD9EjY,26856
|
|
2
|
-
fastmssql-0.1.2.dist-info/WHEEL,sha256=UoHC5NvzY0geoE2r8Mxbl5fR5fYT9OeSzrhPCIC4-kQ,96
|
|
3
|
-
fastmssql-0.1.2.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=qKOle8w_yd4RqIhRHsex9qB78uwej_AZqWtuea7Mf0M,2747904
|
|
7
|
-
fastmssql-0.1.2.dist-info/RECORD,,
|
|
File without changes
|