Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #681 from datafold/oracle-via-oracledb
Browse files Browse the repository at this point in the history
Switch from `cx_Oracle` to `oracledb`
  • Loading branch information
dlawin committed Aug 22, 2023
2 parents fef52d0 + ca0089c commit 4b2ca27
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 149 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Test SQL code and preview changes by comparing development/staging environment d
<p align="left">
<img alt="dbt" src="https://seeklogo.com/images/D/dbt-logo-E4B0ED72A2-seeklogo.com.png" width="10%" />
</p>

<details>
<summary> data-diff integrates with dbt Core to seamlessly compare local development to production datasets

Expand Down Expand Up @@ -58,7 +58,7 @@ When comparing the data, `data-diff` utilizes the resources of the underlying da
- Fully relies on the underlying database engine for computation
- Requires both datasets to be queryable with a single SQL query
- Time complexity approximates JOIN operation and is largely independent of the number of differences in the dataset

## `hashdiff`
- Recommended for comparing datasets across different databases
- Can also be helpful in diffing very large tables with few expected differences within the same database
Expand Down Expand Up @@ -99,14 +99,14 @@ Check out [documentation](https://docs.datafold.com/reference/open_source/cli) f
# Supported databases


| Database | Status | Connection string |
|---------------|-------------------------------------------------------------------------------------------------------------------------------------|--------|
| PostgreSQL >=10 | 🟒 | `postgresql://<user>:<password>@<host>:5432/<database>` |
| Database | Status | Connection string |
|---------------|-------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|
| PostgreSQL >=10 | 🟒 | `postgresql://<user>:<password>@<host>:5432/<database>` |
| MySQL | 🟒 | `mysql://<user>:<password>@<hostname>:5432/<database>` |
| Snowflake | 🟒 | `"snowflake://<user>[:<password>]@<account>/<database>/<SCHEMA>?warehouse=<WAREHOUSE>&role=<role>[&authenticator=externalbrowser]"` |
| BigQuery | 🟒 | `bigquery://<project>/<dataset>` |
| Redshift | 🟒 | `redshift://<username>:<password>@<hostname>:5439/<database>` |
| Oracle | 🟑 | `oracle://<username>:<password>@<hostname>/database` |
| Oracle | 🟑 | `oracle://<username>:<password>@<hostname>/servive_or_sid` |
| Presto | 🟑 | `presto://<username>:<password>@<hostname>:8080/<database>` |
| Databricks | 🟑 | `databricks://<http_path>:<access_token>@<server_hostname>/<catalog>/<schema>` |
| Trino | 🟑 | `trino://<username>:<password>@<hostname>:8080/<database>` |
Expand Down
4 changes: 2 additions & 2 deletions data_diff/sqeleton/databases/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@

@import_helper("oracle")
def import_oracle():
import cx_Oracle
import oracledb

return cx_Oracle
return oracledb


class Mixin_MD5(AbstractMixin_MD5):
Expand Down
Loading

0 comments on commit 4b2ca27

Please sign in to comment.