-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic connection class retargeting (#65)
- Allow modification of dbclass attribute - Only allow updates to a valid (known) dbclass type. That is, you can change the database type. Other attributes (like ssl and all the various auth modes are not yet supported) Now you can take: mysql-test-db.yourcompany.com, and move it to postgres-prod-db.yourcompany.com and update the dbclass to match!
- Loading branch information
Showing
3 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
|
||
|
||
KNOWN_DB_CLASSES = ('msaccess', | ||
'msolap', | ||
'bigquery', | ||
'asterncluster', | ||
'bigsql', | ||
'aurora', | ||
'awshadoophive', | ||
'dataengine', | ||
'DataStax', | ||
'db2', | ||
'essbase', | ||
'exasolution', | ||
'excel', | ||
'excel-direct', | ||
'excel-reader', | ||
'firebird', | ||
'powerpivot', | ||
'genericodbc', | ||
'google-analytics', | ||
'googlecloudsql', | ||
'google-sheets', | ||
'greenplum', | ||
'saphana', | ||
'hadoophive', | ||
'hortonworkshadoophive', | ||
'maprhadoophive', | ||
'marklogic', | ||
'memsql', | ||
'mysql', | ||
'netezza', | ||
'oracle', | ||
'paraccel', | ||
'postgres', | ||
'progressopenedge', | ||
'redshift', | ||
'snowflake', | ||
'spark', | ||
'splunk', | ||
'kognitio', | ||
'sqlserver', | ||
'salesforce', | ||
'sapbw', | ||
'sybasease', | ||
'sybaseiq', | ||
'tbio', | ||
'teradata', | ||
'vectorwise', | ||
'vertica', | ||
'denormalized-cube', | ||
'csv', | ||
'textscan', | ||
'webdata', | ||
'webdata-direct', | ||
'cubeextract') | ||
|
||
|
||
def is_valid_dbclass(dbclass): | ||
return dbclass in KNOWN_DB_CLASSES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters