-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from Snowflake-Labs/support/jvasquez/update_ou…
…tput_text_with_more_detailed_information_about_the_execution [Teradata] Update output text with more detailed information about the execution
- Loading branch information
Showing
12 changed files
with
252 additions
and
171 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
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,15 @@ | ||
.LOGON connection_string; | ||
|
||
.EXPORT RESET | ||
|
||
.SET WIDTH 65531 | ||
.set titledashes off | ||
|
||
.OS rm ../output/object_extracts/DDL/DDL_Databases.sql | ||
.EXPORT FILE = ../output/object_extracts/DDL/DDL_Databases.sql | ||
.SET WIDTH 65531 | ||
SELECT 'CREATE DATABASE ' || TRIM(T1.DATABASENAME) || ' FROM DBC AS PERM = 100000000;' "--" FROM DBC.DATABASESV T1 | ||
WHERE include_databases AND exclude_databases GROUP BY 1 ORDER BY 1; | ||
.EXPORT RESET | ||
|
||
.quit 0; |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
.LOGON connection_string; | ||
|
||
.EXPORT RESET | ||
|
||
.SET WIDTH 65531 | ||
.set titledashes off | ||
|
||
.EXPORT FILE = ../temp/SHOW_Functions.sql | ||
.SET WIDTH 65531 | ||
SELECT 'SELECT ''/* <sc-function> '' || ''' || TRIM(T1.DATABASENAME) || '.' || TRIM(T1.SpecificNAME) || ' </sc-function> */'' as "--"; ' || 'SHOW FUNCTION ' || TRIM(T1.DATABASENAME) || '.' || TRIM(T1.FUNCTIONNAME) || ';' "---" | ||
FROM DBC.FUNCTIONSV T1 WHERE include_databases AND exclude_databases GROUP BY 1; | ||
.EXPORT RESET | ||
.OS rm ../output/object_extracts/DDL/DDL_Functions.sql | ||
.EXPORT FILE = ../output/object_extracts/DDL/DDL_Functions.sql | ||
.SET WIDTH 65531 | ||
.RUN FILE = ../temp/SHOW_Functions.sql | ||
.EXPORT RESET | ||
|
||
.quit 0; |
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,18 @@ | ||
.LOGON connection_string; | ||
|
||
.EXPORT RESET | ||
|
||
.SET WIDTH 65531 | ||
.set titledashes off | ||
|
||
.EXPORT FILE = ../temp/SHOW_Join_Indexes.sql | ||
.SET WIDTH 65531 | ||
SELECT 'SELECT ''/* <sc-joinindex> '' || ''' || TRIM(T1.DATABASENAME) || '.' || TRIM(T1.TABLENAME) || ' </sc-joinindex> */'' as "--"; ' || 'SHOW JOIN INDEX ' || TRIM(T1.DATABASENAME) || '.' ||TRIM(T1.TABLENAME) || ';' "--" FROM DBC.TABLESV T1 WHERE T1.TABLEKIND IN ('I') AND include_databases AND exclude_databases AND include_objects GROUP BY 1; | ||
.EXPORT RESET | ||
.OS rm ../output/object_extracts/DDL/DDL_Join_Indexes.sql | ||
.EXPORT FILE = ../output/object_extracts/DDL/DDL_Join_Indexes.sql | ||
.SET WIDTH 65531 | ||
.RUN FILE = ../temp/SHOW_Join_Indexes.sql | ||
.EXPORT RESET | ||
|
||
.quit 0; |
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,18 @@ | ||
.LOGON connection_string; | ||
|
||
.EXPORT RESET | ||
|
||
.SET WIDTH 65531 | ||
.set titledashes off | ||
|
||
.EXPORT FILE = ../temp/SHOW_Macros.sql | ||
.SET WIDTH 65531 | ||
SELECT 'SELECT ''/* <sc-macro> '' || ''' || TRIM(T1.DATABASENAME) || '.' || TRIM(T1.TABLENAME) || ' </sc-macro> */'' as "--"; ' || 'SHOW MACRO ' || TRIM(T1.DATABASENAME) || '.' || TRIM(T1.TABLENAME) || ';' "--" FROM DBC.TABLESV T1 WHERE T1.TABLEKIND = 'M' AND include_databases AND exclude_databases AND include_objects GROUP BY 1; | ||
.EXPORT RESET | ||
.OS rm ../output/object_extracts/DDL/DDL_Macros.sql | ||
.EXPORT FILE = ../output/object_extracts/DDL/DDL_Macros.sql | ||
.SET WIDTH 65531 | ||
.RUN FILE = ../temp/SHOW_Macros.sql | ||
.EXPORT RESET | ||
|
||
.quit 0; |
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,18 @@ | ||
.LOGON connection_string; | ||
|
||
.EXPORT RESET | ||
|
||
.SET WIDTH 65531 | ||
.set titledashes off | ||
|
||
.EXPORT FILE = ../temp/SHOW_Procedures.sql | ||
.SET WIDTH 65531 | ||
SELECT 'SELECT ''/* <sc-procedure> '' || ''' || TRIM(T1.DATABASENAME) || '.' || TRIM(T1.TABLENAME) || ' </sc-procedure> */'' as "--"; ' || 'SHOW PROCEDURE ' || TRIM(T1.DATABASENAME) || '.' || TRIM(T1.TABLENAME) || ';' "--" FROM DBC.TABLESV T1 WHERE T1.TABLEKIND = 'P' AND include_databases AND exclude_databases AND include_objects GROUP BY 1; | ||
.EXPORT RESET | ||
.OS rm ../output/object_extracts/DDL/DDL_Procedures.sql | ||
.EXPORT FILE = ../output/object_extracts/DDL/DDL_Procedures.sql | ||
.SET WIDTH 65531 | ||
.RUN FILE = ../temp/SHOW_Procedures.sql | ||
.EXPORT RESET | ||
|
||
.quit 0; |
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,14 @@ | ||
.LOGON connection_string; | ||
|
||
.EXPORT RESET | ||
|
||
.SET WIDTH 65531 | ||
.set titledashes off | ||
|
||
.OS rm ../output/object_extracts/DDL/DDL_SF_Schemas.sql | ||
.EXPORT FILE = ../output/object_extracts/DDL/DDL_SF_Schemas.sql | ||
.SET WIDTH 65531 | ||
SELECT '/* <sc-schema> ' || TRIM(T1.DATABASENAME) || ' </sc-schema> */ ' || 'CREATE SCHEMA ' || TRIM(T1.DATABASENAME) || ';' "--" FROM DBC.DATABASESV T1 WHERE include_databases AND exclude_databases GROUP BY 1 ORDER BY 1; | ||
.EXPORT RESET | ||
|
||
.quit 0; |
Oops, something went wrong.