mmt sql
This commit is contained in:
@@ -1,7 +1,21 @@
|
||||
#!/bin/bash -e
|
||||
HOME="/home/compegence/customer"
|
||||
|
||||
#/****************************************************************
|
||||
#****** ForeWarn Licensing and / or usage Terms and Conditions *****
|
||||
#ForeWarn. The NextGen Insights Solution Platform
|
||||
|
||||
#Copyright © 2021 COMPEGENCE. All Rights Reserved
|
||||
|
||||
#ForeWarn is a product of COMPEGENCE.
|
||||
|
||||
#To be used only with a valid license from COMPEGENCE
|
||||
|
||||
#www.compegence.com info@compegence.com
|
||||
#****************************************************************/
|
||||
|
||||
#HOME="/home/compegence/customer"
|
||||
#Directories
|
||||
homeDir=$HOME/MMT
|
||||
homeDir=$HOME/customer/MMT
|
||||
configDir=$homeDir/conf
|
||||
input_file=$configDir/etl-config.txt
|
||||
declare -A credentials
|
||||
@@ -19,7 +33,7 @@ server=${credentials[server]}
|
||||
|
||||
mmt_con="psql -X -q -A -t postgresql://$user:$password@$host/$db?options=--search_path%3D"
|
||||
|
||||
declare -a archivepathvar=("$homeDir/sql/onetime/archive/schema")
|
||||
#declare -a archivepathvar=("$homeDir/sql/onetime/archive/schema")
|
||||
|
||||
declare -a archivepathsvar=("$homeDir/sql/onetime/archive/create" "$homeDir/sql/onetime/archive/function")
|
||||
|
||||
@@ -39,7 +53,7 @@ func_execute_conn(){
|
||||
done
|
||||
}
|
||||
|
||||
func_execute_conn "$mmt_con'archive'" archivepathvar
|
||||
#func_execute_conn "$mmt_con'archive'" archivepathvar
|
||||
|
||||
func_execute_conn "$mmt_con'staging2'" stgpathvar
|
||||
|
||||
|
||||
Reference in New Issue
Block a user