Skip to content

Conversation

@bewithgaurav
Copy link
Collaborator

@bewithgaurav bewithgaurav commented Jan 23, 2026

The mssql-py-core API expects kwargs as a dict parameter (kwargs=dict), not as Python keyword arguments (**kwargs).

Before: pycore_cursor.bulkcopy(table_name, iter(data), **kwargs)
After: pycore_cursor.bulkcopy(table_name, iter(data), kwargs=kwargs)

Work Item / Issue Reference

AB#<WORK_ITEM_ID>

GitHub Issue: #<ISSUE_NUMBER>


Summary

This pull request updates the way keyword arguments are passed to the bulkcopy method in the mssql_python/cursor.py file. The main change ensures compatibility with the Rust API by passing kwargs as a dictionary parameter rather than as Python keyword arguments.

  • Changed the call to pycore_cursor.bulkcopy to pass kwargs as a dictionary using the kwargs parameter, aligning with the expectations of the Rust API.

The Rust API expects kwargs as a dict parameter (kwargs=dict),
not as Python keyword arguments (**kwargs).

Before: pycore_cursor.bulkcopy(table_name, iter(data), **kwargs)
After:  pycore_cursor.bulkcopy(table_name, iter(data), kwargs=kwargs)
@github-actions
Copy link

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

76%


📈 Total Lines Covered: 5431 out of 7084
📁 Project: mssql-python


Diff Coverage

Diff: main...HEAD, staged and unstaged changes

No 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.cpp: 69.4%
mssql_python.pybind.ddbc_bindings.h: 69.7%
mssql_python.pybind.connection.connection.cpp: 73.6%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.pybind.connection.connection_pool.cpp: 79.6%
mssql_python.connection.py: 84.1%
mssql_python.cursor.py: 84.7%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants