Skip to content

added db2 support#58

Merged
chayim merged 14 commits intomasterfrom
added_db2_support
Apr 26, 2022
Merged

added db2 support#58
chayim merged 14 commits intomasterfrom
added_db2_support

Conversation

@MeirShpilraien
Copy link
Copy Markdown

@MeirShpilraien MeirShpilraien commented May 20, 2021

  • add example

@MeirShpilraien MeirShpilraien requested a review from chayim May 20, 2021 09:06
Comment thread rgsync/Connectors/__init__.py Outdated
chayim
chayim previously approved these changes May 23, 2021
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 23, 2021

CLA assistant check
All committers have signed the CLA.

@chayim
Copy link
Copy Markdown
Contributor

chayim commented Oct 7, 2021

What do you think of adding this docker and trying to add db2 to our CI workflow with github? Then we know the tests work.

Comment thread rgsync/Connectors/__init__.py Outdated
@MeirShpilraien MeirShpilraien mentioned this pull request Oct 7, 2021
Comment thread examples/db2/example.py
'LastName':'lname'
}

RGWriteBehind(GB, keysPrefix='emp', mappings=empMappings, connector=empConnector, name='empWriteBehind', version='99.99.99')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unbound name: Name GB is used but not defined in the current scope.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread examples/db2/example.py
'LastName':'lname'
}

RGWriteBehind(GB, keysPrefix='emp', mappings=empMappings, connector=empConnector, name='empWriteBehind', version='99.99.99')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unbound name: Name GB is used but not defined in the current scope.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread examples/db2/example.py
'LastName':'lname'
}

RGWriteBehind(GB, keysPrefix='emp', mappings=empMappings, connector=empConnector, name='empWriteBehind', version='99.99.99')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unbound name: Name GB is used but not defined in the current scope.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread sbin/db2wait.sh
Comment thread sbin/db2wait.sh
Comment thread sbin/db2wait.sh
Comment thread examples/db2/example.py
Comment thread sbin/db2wait.sh
@@ -0,0 +1,11 @@
#!/bin/sh

for i in `seq 1 10`; do
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ShellCheck: Use $(...) notation instead of legacy backticks ....

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread sbin/db2wait.sh
Comment thread sbin/db2wait.sh

for i in `seq 1 10`; do
docker logs db2|grep "Setup has completed"
if [ $? -eq 0 ]; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ShellCheck: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread examples/db2/example.py
'LastName':'lname'
}

RGWriteBehind(GB, keysPrefix='emp', mappings=empMappings, connector=empConnector, name='empWriteBehind', version='99.99.99')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unbound name: Name GB is used but not defined in the current scope.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread sbin/db2wait.sh
@@ -0,0 +1,11 @@
#!/bin/sh

for i in `seq 1 10`; do
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ShellCheck: Use $(...) notation instead of legacy backticks ....

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread sbin/db2wait.sh
@@ -0,0 +1,11 @@
#!/bin/sh

for i in `seq 1 10`; do
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ShellCheck: i appears unused. Verify use (or export if used externally).

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread sbin/db2wait.sh

for i in `seq 1 10`; do
docker logs db2|grep "Setup has completed"
if [ $? -eq 0 ]; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ShellCheck: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread examples/db2/example.py
'LastName':'lname'
}

RGWriteBehind(GB, keysPrefix='emp', mappings=empMappings, connector=empConnector, name='empWriteBehind', version='99.99.99')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unbound name: Name GB is used but not defined in the current scope.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread sbin/db2wait.sh
@@ -0,0 +1,11 @@
#!/bin/sh

for i in `seq 1 10`; do
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ShellCheck: Use $(...) notation instead of legacy backticks ....

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread sbin/db2wait.sh
@@ -0,0 +1,11 @@
#!/bin/sh

for i in `seq 1 10`; do
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ShellCheck: i appears unused. Verify use (or export if used externally).

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread sbin/db2wait.sh

for i in `seq 1 10`; do
docker logs db2|grep "Setup has completed"
if [ $? -eq 0 ]; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ShellCheck: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread examples/db2/example.py
'LastName':'lname'
}

RGWriteBehind(GB, keysPrefix='emp', mappings=empMappings, connector=empConnector, name='empWriteBehind', version='99.99.99')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unbound name: Name GB is used but not defined in the current scope.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Comment thread sbin/db2wait.sh
Comment thread sbin/db2wait.sh
Comment thread sbin/db2wait.sh
@chayim chayim self-requested a review April 26, 2022 06:33
@chayim chayim merged commit 4742ecc into master Apr 26, 2022
@chayim chayim deleted the added_db2_support branch April 26, 2022 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants