Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
iNikitaGricenko committed Mar 22, 2024
1 parent 6680dbb commit 7925de2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
16 changes: 0 additions & 16 deletions plugin-jdbc-db2/src/main/java/io/kestra/plugin/jdbc/db2/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,6 @@
"sql: select * from db2_types",
"fetchOne: true",
}
),
@Example(
title = "Load a csv file into a DB2 table.",
code = {
"url: jdbc:db2://127.0.0.1:50000/",
"username: db2inst",
"password: db2_passwd",
"inputFile: \"{{ outputs.taskId.file }}\"",
"sql: |",
" LOAD DATA LOCAL INFILE '{{ inputFile }}'",
" INTO TABLE discounts" +
" FIELDS TERMINATED BY ','",
" ENCLOSED BY '\"'",
" LINES TERMINATED BY '\\n'",
" IGNORE 1 ROWS;",
}
)
}
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.kestra.plugin.jdbc.db2;

import com.ibm.db2.jcc.DB2Driver;
import io.kestra.core.models.annotations.Example;
import io.kestra.core.models.annotations.Plugin;
import io.kestra.core.runners.RunContext;
Expand All @@ -20,7 +19,7 @@
@Getter
@NoArgsConstructor
@Schema(
title = "Wait for query on a MySQL database."
title = "Wait for query on a DB2 database."
)
@Plugin(
examples = {
Expand Down

0 comments on commit 7925de2

Please sign in to comment.