From 132ec974c4afa2c446f208c20c8294a4c7fcd5a9 Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Mon, 8 Sep 2025 13:11:12 +0530 Subject: [PATCH 01/12] RELEASE: 0.10.0 --- PyPI_Description.md | 10 ++++++---- setup.py | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/PyPI_Description.md b/PyPI_Description.md index abbb9b32..66394083 100644 --- a/PyPI_Description.md +++ b/PyPI_Description.md @@ -1,6 +1,6 @@ # mssql-python -This is a new Python driver for Microsoft SQL Server currently in Alpha phase. +This is a new Python driver for Microsoft SQL Server currently in Public Preview phase. ## Public Preview Release @@ -9,9 +9,11 @@ We are making progress - The Public Preview of our driver is now available! This ### What's Included: - Everything from previous releases -- **Alpine Linux Support:** Added full support for Alpine Linux distribution (musllinux) with specialized driver handling and fixes for musl libc compatibility. -- **Connection Management Improvements:** Fixed autocommit to be False by default and added automatic rollback on connection close for better transaction control. -- **PyODBC Compatibility:** Enhanced type objects and constructor compatibility with pyodbc for seamless migration and interoperability. +- **Linux Platform Expansion:** Added full support for SUSE and openSUSE distributions alongside existing Alpine Linux support, broadening enterprise Linux compatibility. +- **Context Manager Support:** Implemented Python `with` statement support for Connection and Cursor classes with automatic transaction management and resource cleanup. +- **Large Data Streaming:** Added Data At Execution (DAE) support for streaming large text and binary parameters, eliminating memory constraints for bulk operations. +- **Enhanced Unicode Handling:** Improved emoji and international character support with robust UTF-16 encoding for reliable multilingual data processing. +- **DB-API 2.0 Compliance:** Added standard exception classes and improved API consistency for seamless migration from other Python database drivers. For more information, please visit the project link on Github: https://github.com/microsoft/mssql-python diff --git a/setup.py b/setup.py index 0c9aac1c..a77bc58c 100644 --- a/setup.py +++ b/setup.py @@ -83,7 +83,7 @@ def finalize_options(self): setup( name='mssql-python', - version='0.9.0', + version='0.10.0', description='A Python library for interacting with Microsoft SQL Server', long_description=open('PyPI_Description.md', encoding='utf-8').read(), long_description_content_type='text/markdown', From 049a4d432f3e348b66c32460731686440adb66e4 Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Mon, 8 Sep 2025 13:14:39 +0530 Subject: [PATCH 02/12] SUSE Linux support --- PyPI_Description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyPI_Description.md b/PyPI_Description.md index 66394083..e32bf0cd 100644 --- a/PyPI_Description.md +++ b/PyPI_Description.md @@ -9,7 +9,7 @@ We are making progress - The Public Preview of our driver is now available! This ### What's Included: - Everything from previous releases -- **Linux Platform Expansion:** Added full support for SUSE and openSUSE distributions alongside existing Alpine Linux support, broadening enterprise Linux compatibility. +- **SUSE Linux Support:** Added full support for SUSE and openSUSE distributions alongside existing Alpine Linux support, broadening enterprise Linux compatibility. - **Context Manager Support:** Implemented Python `with` statement support for Connection and Cursor classes with automatic transaction management and resource cleanup. - **Large Data Streaming:** Added Data At Execution (DAE) support for streaming large text and binary parameters, eliminating memory constraints for bulk operations. - **Enhanced Unicode Handling:** Improved emoji and international character support with robust UTF-16 encoding for reliable multilingual data processing. From 7fe66e42d5be51656d324748dcc85c73643151b2 Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Mon, 8 Sep 2025 13:16:12 +0530 Subject: [PATCH 03/12] SUSE Linux support --- PyPI_Description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyPI_Description.md b/PyPI_Description.md index e32bf0cd..0aea14b4 100644 --- a/PyPI_Description.md +++ b/PyPI_Description.md @@ -13,7 +13,7 @@ We are making progress - The Public Preview of our driver is now available! This - **Context Manager Support:** Implemented Python `with` statement support for Connection and Cursor classes with automatic transaction management and resource cleanup. - **Large Data Streaming:** Added Data At Execution (DAE) support for streaming large text and binary parameters, eliminating memory constraints for bulk operations. - **Enhanced Unicode Handling:** Improved emoji and international character support with robust UTF-16 encoding for reliable multilingual data processing. -- **DB-API 2.0 Compliance:** Added standard exception classes and improved API consistency for seamless migration from other Python database drivers. +- **DB-API 2.0 Compliance:** Added standard exception classes and improved API consistency for seamless migration from pyodbc. For more information, please visit the project link on Github: https://github.com/microsoft/mssql-python From 0148183e4ed60c78ce14dacea6472fb5b797bb0b Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Mon, 8 Sep 2025 13:25:43 +0530 Subject: [PATCH 04/12] Only large text streaming --- PyPI_Description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyPI_Description.md b/PyPI_Description.md index 0aea14b4..090db52d 100644 --- a/PyPI_Description.md +++ b/PyPI_Description.md @@ -11,7 +11,7 @@ We are making progress - The Public Preview of our driver is now available! This - Everything from previous releases - **SUSE Linux Support:** Added full support for SUSE and openSUSE distributions alongside existing Alpine Linux support, broadening enterprise Linux compatibility. - **Context Manager Support:** Implemented Python `with` statement support for Connection and Cursor classes with automatic transaction management and resource cleanup. -- **Large Data Streaming:** Added Data At Execution (DAE) support for streaming large text and binary parameters, eliminating memory constraints for bulk operations. +- **Large Text Streaming:** Added Data At Execution (DAE) support for streaming large text parameters, eliminating memory constraints for bulk text operations. - **Enhanced Unicode Handling:** Improved emoji and international character support with robust UTF-16 encoding for reliable multilingual data processing. - **DB-API 2.0 Compliance:** Added standard exception classes and improved API consistency for seamless migration from pyodbc. From 225613b5ede4a71a046f8b8fc753f4223ac5769d Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Mon, 8 Sep 2025 13:27:55 +0530 Subject: [PATCH 05/12] PyODBC compatibility --- PyPI_Description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyPI_Description.md b/PyPI_Description.md index 090db52d..3acbd35a 100644 --- a/PyPI_Description.md +++ b/PyPI_Description.md @@ -13,7 +13,7 @@ We are making progress - The Public Preview of our driver is now available! This - **Context Manager Support:** Implemented Python `with` statement support for Connection and Cursor classes with automatic transaction management and resource cleanup. - **Large Text Streaming:** Added Data At Execution (DAE) support for streaming large text parameters, eliminating memory constraints for bulk text operations. - **Enhanced Unicode Handling:** Improved emoji and international character support with robust UTF-16 encoding for reliable multilingual data processing. -- **DB-API 2.0 Compliance:** Added standard exception classes and improved API consistency for seamless migration from pyodbc. +- **PyODBC Compatibility:** Added standard exception classes and improved API consistency for seamless migration from pyodbc. For more information, please visit the project link on Github: https://github.com/microsoft/mssql-python From 543f6e7d9841bcbc86fa124cf7ad0213e07e7307 Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Mon, 8 Sep 2025 13:59:55 +0530 Subject: [PATCH 06/12] PyODBC compatibility --- PyPI_Description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyPI_Description.md b/PyPI_Description.md index 3acbd35a..3e25239a 100644 --- a/PyPI_Description.md +++ b/PyPI_Description.md @@ -13,7 +13,7 @@ We are making progress - The Public Preview of our driver is now available! This - **Context Manager Support:** Implemented Python `with` statement support for Connection and Cursor classes with automatic transaction management and resource cleanup. - **Large Text Streaming:** Added Data At Execution (DAE) support for streaming large text parameters, eliminating memory constraints for bulk text operations. - **Enhanced Unicode Handling:** Improved emoji and international character support with robust UTF-16 encoding for reliable multilingual data processing. -- **PyODBC Compatibility:** Added standard exception classes and improved API consistency for seamless migration from pyodbc. +- **PyODBC Compatibility:** Added standard exception classes (`connection.Error`, `connection.ProgrammingError` etc.), context manager support (`with` statements), and encoding configuration APIs (`setencoding()`, `getencoding()`, `setdecoding`, `getdecoding`) for seamless migration from pyodbc. For more information, please visit the project link on Github: https://github.com/microsoft/mssql-python From 424be1b7e289d9f4df18c95ed52806d50b530e43 Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Mon, 8 Sep 2025 14:05:53 +0530 Subject: [PATCH 07/12] RELEASE: 0.10.0 --- PyPI_Description.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PyPI_Description.md b/PyPI_Description.md index 3e25239a..bb3b9882 100644 --- a/PyPI_Description.md +++ b/PyPI_Description.md @@ -13,7 +13,10 @@ We are making progress - The Public Preview of our driver is now available! This - **Context Manager Support:** Implemented Python `with` statement support for Connection and Cursor classes with automatic transaction management and resource cleanup. - **Large Text Streaming:** Added Data At Execution (DAE) support for streaming large text parameters, eliminating memory constraints for bulk text operations. - **Enhanced Unicode Handling:** Improved emoji and international character support with robust UTF-16 encoding for reliable multilingual data processing. -- **PyODBC Compatibility:** Added standard exception classes (`connection.Error`, `connection.ProgrammingError` etc.), context manager support (`with` statements), and encoding configuration APIs (`setencoding()`, `getencoding()`, `setdecoding`, `getdecoding`) for seamless migration from pyodbc. +- **PyODBC Compatibility:** Enhanced API compatibility with pyodbc including: + - DB-API 2.0 exception classes: `Warning`, `Error`, `InterfaceError`, `DatabaseError`, `DataError`, `OperationalError`, `IntegrityError`, `InternalError`, `ProgrammingError`, `NotSupportedError` + - Context manager support with `with` statements for Connection and Cursor + - Encoding configuration APIs: `setencoding()`, `getencoding()`, `setdecoding()`, `getdecoding()` For more information, please visit the project link on Github: https://github.com/microsoft/mssql-python From 950d4e45d261ce76c8117515a539156781732000 Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Mon, 8 Sep 2025 15:26:57 +0530 Subject: [PATCH 08/12] RELEASE: 0.10.0 --- PyPI_Description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyPI_Description.md b/PyPI_Description.md index bb3b9882..871dc7a1 100644 --- a/PyPI_Description.md +++ b/PyPI_Description.md @@ -4,7 +4,7 @@ This is a new Python driver for Microsoft SQL Server currently in Public Preview ## Public Preview Release -We are making progress - The Public Preview of our driver is now available! This marks a significant milestone in our development journey. While we saw a few early adopters of our alpha release, we are introducing the following functionalities to support your applications in a more robust and reliable manner. +We are making progress - The Public Preview of our driver is now available! This marks a significant milestone in our development journey. While we saw a few early adopters of our public preview release, we are introducing the following functionalities to support your applications in a more robust and reliable manner. ### What's Included: From cded43e19cd81e86b832cf37fcc62ea88d4846db Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Mon, 8 Sep 2025 15:42:35 +0530 Subject: [PATCH 09/12] RELEASE: 0.10.0 --- PyPI_Description.md | 9 +++++++-- setup.py | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/PyPI_Description.md b/PyPI_Description.md index 871dc7a1..59c02b26 100644 --- a/PyPI_Description.md +++ b/PyPI_Description.md @@ -9,16 +9,21 @@ We are making progress - The Public Preview of our driver is now available! This ### What's Included: - Everything from previous releases -- **SUSE Linux Support:** Added full support for SUSE and openSUSE distributions alongside existing Alpine Linux support, broadening enterprise Linux compatibility. +- **SUSE Linux Support:** Added full support for SUSE and openSUSE distributions alongside existing other Linux distros support, broadening enterprise Linux compatibility. - **Context Manager Support:** Implemented Python `with` statement support for Connection and Cursor classes with automatic transaction management and resource cleanup. -- **Large Text Streaming:** Added Data At Execution (DAE) support for streaming large text parameters, eliminating memory constraints for bulk text operations. +- **Large Text Streaming:** Added Data At Execution (DAE) support for streaming large text parameters (`NVARCHAR(MAX)`, `VARCHAR(MAX)`), eliminating memory constraints for bulk text `execute()` operations. + - `VARBINARY(MAX)` support to follow alongwith streaming support for fetch operations. - **Enhanced Unicode Handling:** Improved emoji and international character support with robust UTF-16 encoding for reliable multilingual data processing. - **PyODBC Compatibility:** Enhanced API compatibility with pyodbc including: - DB-API 2.0 exception classes: `Warning`, `Error`, `InterfaceError`, `DatabaseError`, `DataError`, `OperationalError`, `IntegrityError`, `InternalError`, `ProgrammingError`, `NotSupportedError` - Context manager support with `with` statements for Connection and Cursor - Encoding configuration APIs: `setencoding()`, `getencoding()`, `setdecoding()`, `getdecoding()` + - Cursor navigation APIs: `next()`, `__iter__()`, `scroll()`, `skip()`, `fetchval()` + - Cursor attributes: `rownumber`, `messages` + - Additional methods: `cursor.commit()`, `table()` For more information, please visit the project link on Github: https://github.com/microsoft/mssql-python +If you have any feedback, questions or need support please mail us at mssql-python@microsoft.com. ### What's Next: diff --git a/setup.py b/setup.py index a77bc58c..8d25addf 100644 --- a/setup.py +++ b/setup.py @@ -88,7 +88,7 @@ def finalize_options(self): long_description=open('PyPI_Description.md', encoding='utf-8').read(), long_description_content_type='text/markdown', author='Microsoft Corporation', - author_email='pysqldriver@microsoft.com', + author_email='mssql-python@microsoft.com', url='https://github.com/microsoft/mssql-python', packages=packages, package_data={ From 162dfefa9ad841e8b032e84a3ca2a97929798a62 Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Mon, 8 Sep 2025 15:44:59 +0530 Subject: [PATCH 10/12] RELEASE: 0.10.0 --- PyPI_Description.md | 1 + 1 file changed, 1 insertion(+) diff --git a/PyPI_Description.md b/PyPI_Description.md index 59c02b26..d1af7b78 100644 --- a/PyPI_Description.md +++ b/PyPI_Description.md @@ -23,6 +23,7 @@ We are making progress - The Public Preview of our driver is now available! This - Additional methods: `cursor.commit()`, `table()` For more information, please visit the project link on Github: https://github.com/microsoft/mssql-python + If you have any feedback, questions or need support please mail us at mssql-python@microsoft.com. ### What's Next: From f57e4c95ed8ad87de7dee3f9aa53c9adb5aaa215 Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Mon, 8 Sep 2025 15:51:12 +0530 Subject: [PATCH 11/12] RELEASE: 0.10.0 --- PyPI_Description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyPI_Description.md b/PyPI_Description.md index d1af7b78..45c7587f 100644 --- a/PyPI_Description.md +++ b/PyPI_Description.md @@ -20,7 +20,7 @@ We are making progress - The Public Preview of our driver is now available! This - Encoding configuration APIs: `setencoding()`, `getencoding()`, `setdecoding()`, `getdecoding()` - Cursor navigation APIs: `next()`, `__iter__()`, `scroll()`, `skip()`, `fetchval()` - Cursor attributes: `rownumber`, `messages` - - Additional methods: `cursor.commit()`, `table()` + - Additional methods: `cursor.commit()`, `cursor.rollback()` `table()` For more information, please visit the project link on Github: https://github.com/microsoft/mssql-python From de2e0eb437e8ca77eba71be4a1a513f7f96e956b Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Mon, 8 Sep 2025 15:52:31 +0530 Subject: [PATCH 12/12] RELEASE: 0.10.0 --- PyPI_Description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyPI_Description.md b/PyPI_Description.md index 45c7587f..c2a1990b 100644 --- a/PyPI_Description.md +++ b/PyPI_Description.md @@ -20,7 +20,7 @@ We are making progress - The Public Preview of our driver is now available! This - Encoding configuration APIs: `setencoding()`, `getencoding()`, `setdecoding()`, `getdecoding()` - Cursor navigation APIs: `next()`, `__iter__()`, `scroll()`, `skip()`, `fetchval()` - Cursor attributes: `rownumber`, `messages` - - Additional methods: `cursor.commit()`, `cursor.rollback()` `table()` + - Additional methods: `cursor.commit()`, `cursor.rollback()`, `table()` For more information, please visit the project link on Github: https://github.com/microsoft/mssql-python