You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository includes detailed prompt files for common tasks. Reference these with `#`:
16
-
17
-
| Task | Prompt | When to Use |
18
-
|------|--------|-------------|
19
-
| First-time setup |`#setup-dev-env`| New machine, fresh clone |
20
-
| Build C++ extension |`#build-ddbc`| After modifying .cpp/.h files |
21
-
| Run tests |`#run-tests`| Validating changes |
22
-
| Create PR |`#create-pr`| Ready to submit changes |
23
-
24
15
**Workflow order for new contributors:**
25
-
1.`#setup-dev-env` → Set up venv and dependencies
26
-
2.`#build-ddbc` → Build native extension
27
-
3. Make your changes
28
-
4.`#run-tests` → Validate
29
-
5.`#create-pr` → Submit
30
-
31
-
## Usage Examples (For Suggesting to Users)
32
-
33
-
> **Security Note**: Examples use `TrustServerCertificate=yes` for local development with self-signed certificates. For production, remove this option to ensure proper TLS certificate validation.
|`ImportError: ddbc_bindings`| Extension not built |Run `#build-ddbc`|
237
+
|`ImportError: ddbc_bindings`| Extension not built |Build native extension (see Build System)|
308
238
| Connection timeout | Missing env var | Set `DB_CONNECTION_STRING`|
309
239
|`dylib not found` (macOS) | Library paths | Run `configure_dylibs.sh`|
310
240
|`ODBC Driver not found`| Missing driver | Install Microsoft ODBC Driver 18 |
311
-
|`ModuleNotFoundError`| Not in venv |Run `#setup-dev-env`|
241
+
|`ModuleNotFoundError`| Not in venv |Activate virtual environment|
312
242
313
243
## Contributing Guidelines
314
244
@@ -323,11 +253,3 @@ Exception (base)
323
253
3.**Test on target platform** before submitting PRs
324
254
4.**Check CI pipeline results** for cross-platform compatibility
325
255
326
-
## Trust These Instructions
327
-
328
-
These instructions are comprehensive and tested. Only search for additional information if:
329
-
- Build commands fail with unexpected errors
330
-
- New platform support is being added
331
-
- Dependencies or requirements have changed
332
-
333
-
For any ambiguity, refer to the platform-specific README in `mssql_python/pybind/README.md` or the comprehensive CI pipeline configurations in `eng/pipelines/`.
Copy file name to clipboardExpand all lines: llms.txt
+14-69Lines changed: 14 additions & 69 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,5 @@
1
1
# mssql-python
2
2
3
-
> Microsoft Python Driver for SQL Server and Azure SQL
4
-
5
3
mssql-python is the official Microsoft Python driver for SQL Server and Azure SQL databases. It provides DB API 2.0 compliant database access with Direct Database Connectivity (DDBC) - no external ODBC driver manager required.
6
4
7
5
## Installation
@@ -15,59 +13,19 @@ Or using uv (recommended for faster installs):
> **Security Note**: The examples below use `TrustServerCertificate=yes` for local development with self-signed certificates. For production or remote connections, remove this option to ensure proper TLS certificate validation.
0 commit comments