---
source: crates/ruff_linter/src/rules/airflow/mod.rs
---
AIR302 [*] `airflow.hooks.jdbc_hook.JdbcHook` is moved into `jdbc` provider in Airflow 3.0;
 --> AIR302_jdbc.py:8:1
  |
6 | )
7 |
8 | JdbcHook()
  | ^^^^^^^^
9 | jaydebeapi()
  |
help: Install `apache-airflow-providers-jdbc>=1.0.0` and use `JdbcHook` from `airflow.providers.jdbc.hooks.jdbc` instead.
  |
3 | from airflow.hooks.jdbc_hook import (
  -     JdbcHook,
4 |     jaydebeapi,
5 | )
6 + from airflow.providers.jdbc.hooks.jdbc import JdbcHook
7 |
  |
note: This is an unsafe fix and may change runtime behavior

AIR302 [*] `airflow.hooks.jdbc_hook.jaydebeapi` is moved into `jdbc` provider in Airflow 3.0;
 --> AIR302_jdbc.py:9:1
  |
8 | JdbcHook()
9 | jaydebeapi()
  | ^^^^^^^^^^
  |
help: Install `apache-airflow-providers-jdbc>=1.0.0` and use `jaydebeapi` from `airflow.providers.jdbc.hooks.jdbc` instead.
  |
4 |     JdbcHook,
  -     jaydebeapi,
5 | )
6 + from airflow.providers.jdbc.hooks.jdbc import jaydebeapi
7 |
  |
note: This is an unsafe fix and may change runtime behavior
