Query
Query
yaml
type: "io.kestra.plugin.jdbc.oracle.Query"Examples
yaml
id: oracle_query
namespace: company.team
tasks:
- id: select
type: io.kestra.plugin.jdbc.oracle.Query
url: jdbc:oracle:thin:@localhost:49161:XE
username: oracle_user
password: oracle_password
sql: select * from source
fetchType: FETCH
- id: generate_update
type: io.kestra.plugin.jdbc.oracle.Queries
url: jdbc:oracle:thin:@localhost:49161:XE
username: oracle_user
password: oracle_password
sql: "{% for row in outputs.select.rows %} INSERT INTO destination (year_month, store_code, update_date) values ({{ row.year_month }}, {{ row.store_code }}, TO_DATE('{{ row.date }}', 'MONTH DD, YYYY') ); {% endfor %}"
Properties
sql *Requiredstring
url *Requiredstring
afterSQL string
fetchSize integerstring
Default
10000fetchType string
Default
NONEPossible Values
STOREFETCHFETCH_ONENONEparameters object
password string
timeZoneId string
username string
Outputs
row object
rows array
SubTypeobject
size integer
uri string
Format
uriMetrics
fetch.size counter
Unit
rows