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

Added Oracle support #67

Merged
merged 2 commits into from
Oct 12, 2023
Merged

Added Oracle support #67

merged 2 commits into from
Oct 12, 2023

Conversation

marqueewinq
Copy link
Contributor

@marqueewinq marqueewinq commented Sep 20, 2023

  • Added api.add_oracle_source
  • Added elif clause in models.CatSource and CatSource.service_name + migration
  • Added db.DbScanner._create_oracle_extractor
  • Some tests

Pipeline on my fork: dbcat

@marqueewinq
Copy link
Contributor Author

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}"
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

@marqueewinq marqueewinq Sep 28, 2023

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?

Copy link
Member

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.

@vrajat vrajat merged commit 7a5f292 into tokern:main Oct 12, 2023
3 checks passed
@jhecking
Copy link
Contributor

dbcat@0.15.0 has been published to PyPI including Oracle source support:

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