Releases: dxdc/sqlalchemy-mssql-bulkcopy
Releases · dxdc/sqlalchemy-mssql-bulkcopy
Release list
v0.1.0
Bulk copy for SQLAlchemy + mssql-python — 10-50x faster writes via SQL Server's native TDS bulk load protocol.
API
bulkcopy(conn, data, table_name, **kwargs)— direct function, no engine config needed, returns driver result dictregister_bulkcopy(engine, **defaults)— SAdo_executemanyevent hook with per-statement opt-in viaexecution_options(use_bulkcopy=True)bulkcopy_insert_method— pandasmethod=callable fordf.to_sql()
Highlights
- All
cursor.bulkcopy()kwargs pass through to the driver — future-proof when mssql-python adds new options on_completecallback for confirming bulkcopy was used and inspecting throughput- Graceful fallback to
executemany()with logging on any error - Handles DataFrames, tuples, generators, lists-of-lists
- Column key → DB column name mapping via SA's compilation context
Full Changelog: https://github.com/dxdc/sqlalchemy-mssql-bulkcopy/commits/v0.1.0