예제 #1
0
 def execute(self, context: 'Context') -> Optional[Union[List, Dict]]:
     self.log.info('Executing: %s', self.procedure)
     hook = OracleHook(oracle_conn_id=self.oracle_conn_id)
     return hook.callproc(self.procedure,
                          autocommit=True,
                          parameters=self.parameters)
예제 #2
0
 def execute(self, context) -> None:
     self.log.info('Executing: %s', self.procedure)
     hook = OracleHook(oracle_conn_id=self.oracle_conn_id)
     return hook.callproc(self.procedure,
                          autocommit=True,
                          parameters=self.parameters)