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

GenericSQL: add teradatasqlalchemy #19621

Merged
merged 11 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions docker/genericsql/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ verify_ssl = true

[packages]
sqlalchemy = "*"
teradatasqlalchemy = "*"
pymysql = "*"
psycopg2-binary = "*"
pyodbc = "*"
Expand Down
67 changes: 59 additions & 8 deletions docker/genericsql/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions docker/genericsql/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pyodbc
import psycopg2
import cx_Oracle
import teradatasqlalchemy

assert 'FreeTDS' in pyodbc.drivers()
assert 'ODBC Driver 18 for SQL Server' in pyodbc.drivers(), pyodbc.drivers()
Expand All @@ -22,4 +23,7 @@
except Exception as ex:
assert "Can't open lib" not in str(ex), "Failed because of missing lib: " + str(ex)

# teradata test: raises sqlalchemy.exc.NoSuchModuleError if the plugin is not installed
eng = sqlalchemy.create_engine('teradatasql://guest:foo@bar')

print("All is good. All imported successfully")
8 changes: 8 additions & 0 deletions docker/packages_license_check_exclude.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@
"demisto-sdk"
],
"notes": "Used only for executing lint as a utility via cmd interface"
},
"teradatasql": {
"docker_images": ["genericsql"],
"notes": "CIAC-7219"
},
"teradatasqlalchemy": {
"docker_images": ["genericsql"],
"notes": "CIAC-7219"
}
}
}
Loading