-
Notifications
You must be signed in to change notification settings - Fork 10
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
Added Oracle support #67
Conversation
I've just discovered that keenborder786 has already submitted his PR on this. Great work! |
@@ -174,6 +177,8 @@ def conn_string(self): | |||
else "", | |||
) | |||
) | |||
elif self.source_type == "oracle": | |||
conn_string = f"oracle+cx_oracle://{self.username}:{self.password}@{self.uri}:{self.port}/{self.service_name}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not familiar with Oracle. Is service_name
the equivalent of a database within oracle? Postgres has a similar concept.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oracle's Service Name is a way to point to a database (or databases) in the Oracle DB (like DNS), and the Postgres database is the actual database within the Postgres DB.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vrajat I am sorry to push, but we're currently using piicatcher as a stage in our pipeline. It would be great for us to have an Oracle support merged -- if there's anything more i can do to improve this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay. I'll look into this today.
dbcat@0.15.0 has been published to PyPI including Oracle source support: |
api.add_oracle_source
models.CatSource
andCatSource.service_name
+ migrationdb.DbScanner._create_oracle_extractor
Pipeline on my fork: