Batch
yaml
type: "io.kestra.plugin.jdbc.sqlserver.batch"
Examples
yaml
id: sqlserver_batch_query
namespace: company.team
tasks:
- id: query
type: io.kestra.plugin.jdbc.sqlserver.Query
url: jdbc:sqlserver://dev:41433;trustServerCertificate=true
username: "{{ secret('SQL_USERNAME') }}"
password: "{{ secret('SQL_PASSWORD') }}"
sql: |
SELECT *
FROM xref
LIMIT 1500;
fetchType: STORE
- id: update
type: io.kestra.plugin.jdbc.sqlserver.Batch
from: "{{ outputs.query.uri }}"
url: jdbc:sqlserver://prod:41433;trustServerCertificate=true
username: "{{ secret('SQL_USERNAME') }}"
password: "{{ secret('SQL_PASSWORD') }}"
sql: |
insert into xref values( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
yaml
id: sqlserver_batch_query
namespace: company.team
tasks:
- id: query
type: io.kestra.plugin.jdbc.sqlserver.Query
url: jdbc:sqlserver://dev:41433;trustServerCertificate=true
username: sql_server_user
password: sql_server_passwd
sql: |
SELECT *
FROM xref
LIMIT 1500;
fetchType: STORE
- id: update",
type: io.kestra.plugin.jdbc.sqlserver.Batch
from: "{{ outputs.query.uri }}"
url: jdbc:sqlserver://prod:41433;trustServerCertificate=true
username: "{{ secret('SQL_USERNAME') }}"
password: "{{ secret('SQL_PASSWORD') }}"
table: xref
Properties
from *Requiredstring
url *Requiredstring
chunk integerstring
Default
1000
columns array
SubType string