DOC: mssql-python driver API documentation for Bulk Copy#454
DOC: mssql-python driver API documentation for Bulk Copy#454subrata-ms wants to merge 5 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a standalone API reference for the Cursor.bulkcopy() feature to help users understand how to perform high-throughput bulk loads via mssql-python/mssql_py_core.
Changes:
- Introduces
BULKCOPY_API.mddescribingCursor.bulkcopy()usage, parameters, return shape, and examples. - Documents connection-string handling/keyword forwarding and internal “separate connection” behavior.
- Adds performance guidance and operational notes for bulk-loading scenarios.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| > **Availability:** Requires the `mssql_py_core` native extension (bundled with the `mssql-python` wheel). | ||
|
|
||
| --- | ||
| ## Key Benefits |
There was a problem hiding this comment.
Key benefits are not really required in this doc unless others feel differently. This is a better candidate for blog post.
There was a problem hiding this comment.
May be good to have as user should be aware of the properties/efficiency of the BCP. But this is surely a good candidate for Blog too.
📊 Code Coverage Report
Diff CoverageDiff: main...HEAD, staged and unstaged changesNo lines with coverage information in this diff. 📋 Files Needing Attention📉 Files with overall lowest coverage (click to expand)mssql_python.pybind.logger_bridge.hpp: 58.8%
mssql_python.pybind.logger_bridge.cpp: 59.2%
mssql_python.row.py: 66.2%
mssql_python.pybind.ddbc_bindings.h: 67.8%
mssql_python.pybind.ddbc_bindings.cpp: 69.7%
mssql_python.pybind.connection.connection.cpp: 75.3%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.pybind.connection.connection_pool.cpp: 79.6%
mssql_python.cursor.py: 84.8%
mssql_python.__init__.py: 84.9%🔗 Quick Links
|
Work Item / Issue Reference
Summary
This pull request adds comprehensive documentation for the new
bulkcopy()API on theCursorobject, detailing its usage, parameters, error handling, connection requirements, and performance tips. The documentation is designed to help users understand and effectively use the high-performance bulk data loading feature for SQL Server and Azure SQL.Bulk Copy API Documentation:
BULKCOPY_API.mdwith a detailed overview of thebulkcopy()method, including its benefits, method signature, parameters, and return values.