Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Db2 plugin #260

Merged
merged 27 commits into from
Mar 28, 2024
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
bae9a12
Implement db2 plugin
iNikitaGricenko Mar 22, 2024
b5f91b3
Finish tests for db2 plugin
iNikitaGricenko Mar 22, 2024
6680dbb
Remove unused dependencies
iNikitaGricenko Mar 22, 2024
7925de2
Documentation
iNikitaGricenko Mar 22, 2024
51b23c3
Add healthcheck that waits for database to init
iNikitaGricenko Mar 22, 2024
b52d185
refactor
iNikitaGricenko Mar 24, 2024
47fb982
Change port, add start_period on healthcheck, move db2 in docker-comp…
iNikitaGricenko Mar 25, 2024
ec1fa00
temporary solution of wait for init database
iNikitaGricenko Mar 25, 2024
9400c4d
temporary solution of wait for init database
iNikitaGricenko Mar 25, 2024
143d9ff
remove wait for init database methods
iNikitaGricenko Mar 25, 2024
4106e14
change healthcheck, add depends_on
iNikitaGricenko Mar 26, 2024
356b4f7
change healthcheck, add depends_on
iNikitaGricenko Mar 26, 2024
b1b8193
change healthcheck, switch database to default created (sample), add …
iNikitaGricenko Mar 26, 2024
7dc3fd2
change healthcheck, switch database to default created (sample), add …
iNikitaGricenko Mar 26, 2024
c1a6cd9
remove block-until-healthy
iNikitaGricenko Mar 26, 2024
94f82de
switch database. change healthcheck, bring back block-until-healthy
iNikitaGricenko Mar 26, 2024
265340e
revert rename docker-compose-ci.yml
iNikitaGricenko Mar 26, 2024
9c87d52
healthcheck change interval, retries and start_period
iNikitaGricenko Mar 28, 2024
344acc4
Merge branch 'master' into db2
iNikitaGricenko Mar 28, 2024
4e44984
Merge branch 'master' into db2
iNikitaGricenko Mar 28, 2024
20c0d7a
Init testdb, user testdb for test classes
iNikitaGricenko Mar 28, 2024
77793b1
Remove volume from db2 docker container
iNikitaGricenko Mar 28, 2024
b887427
Update start_period before healthcheck
iNikitaGricenko Mar 28, 2024
52a6736
Update tests sleep time to give time for database initialization
iNikitaGricenko Mar 28, 2024
0702c85
Attempt 11 to pass git check and init database before test execution.…
iNikitaGricenko Mar 28, 2024
c291c3e
Attempt 12 to pass git check and init database before test execution.…
iNikitaGricenko Mar 28, 2024
c306c4c
Commented out db2 from docker-compose-ci.yml. Disable test for CI (on…
iNikitaGricenko Mar 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Documentation
iNikitaGricenko committed Mar 22, 2024

Unverified

This user has not yet uploaded their public signing key.
commit 7925de2e56792b78975a9e1c19747e4e74c62637
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
@@ -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;",
}
)
}
)
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;
@@ -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 = {