Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
add Oracle SQL support through the OracleHook
  • Loading branch information
yoziru committed Sep 7, 2015
1 parent 2a2dfc7 commit 8eff6e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ def get_hook(self):
return hooks.JdbcHook(jdbc_conn_id=self.conn_id)
elif self.conn_type == 'mssql':
return hooks.MsSqlHook(mssql_conn_id=self.conn_id)
elif self.conn_type == 'oracle':
return hooks.OracleHook(oracle_conn_id=self.conn_id)
except:
return None

Expand Down

0 comments on commit 8eff6e4

Please sign in to comment.