See 20457589b2
This commit is contained in:
Ash Berlin-Taylor 2020-10-15 07:05:16 +01:00 коммит произвёл GitHub
Родитель c099e0a2b5
Коммит 765d29ecc9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 20 удалений

Просмотреть файл

@ -16,10 +16,7 @@
# specific language governing permissions and limitations
# under the License.
"""
This module is deprecated due to the discontinuation of the pymssql project.
See https://github.com/pymssql/pymssql/issues/668.
Support for pymssql will be removed in Airflow 2.0.
Please use :mod:`~airflow.providers.odbc.hooks.odbc`.
Microsoft SQLServer hook module
"""
import warnings
@ -28,25 +25,9 @@ import pymssql
from airflow.hooks.dbapi_hook import DbApiHook
warnings.warn(
(
"This module is deprecated due to the discontinuation of the pymssql project.\n"
"See https://github.com/pymssql/pymssql/issues/668.\n"
"Support for pymssql will be removed in airflow 2.0.\n"
"Please use `airflow.providers.odbc.hooks.odbc`.\n"
),
DeprecationWarning,
stacklevel=2,
)
class MsSqlHook(DbApiHook):
"""
.. warning::
This class is deprecated.
Please use :py:class:`~airflow.providers.odbc.hooks.odbc.OdbcHook`.
Interact with Microsoft SQL Server.
"""