SQL-Referenz für App-Konfiguration¶
Datei: configuration/app_config.sql
Datenbankobjekte und Prozeduren¶
STATE.APP_CONFIG¶
Eine interne Tabelle, in der alle Konnektorkonfigurationen gespeichert werden. Diese Tabelle weist folgende Struktur auf:
KEY  | 
VALUE  | 
UPDATED_AT  | 
|---|---|---|
connector_configuration  | 
{warehouse: “wh”, destination_db: “db”, destination_schema: “s”}  | 
TIMESTAMP_NTZ_1  | 
custom_configuration  | 
{journal_table: “j_table_name”}  | 
TIMESTAMP_NTZ_2  | 
connection_configuration  | 
{secret_name: “secret_db.schema.the_secret”}  | 
TIMESTAMP_NTZ_3  | 
…  | 
{…}  | 
…  | 
PUBLIC.CONNECTOR_CONFIGURATION¶
Eine Ansicht, die die Daten aus der internen Tabelle APP_CONFIG abruft und zuordnet. Die Zuordnung sieht wie folgt aus:
KEY (col) → CONFIG_GROUP (col);
JSON keys from VALUE column (JSON key) → CONFIG_KEY (col)
JSON values from VALUE column (JSON value) → VALUE (col)
UPDATED_AT (col) → UPDATED_AT (col)
Beispiel für CONNECTOR_CONFIGURATION-Ansicht, erstellt auf APP_CONFIG-Beispiel:
CONFIG_GROUP  | 
CONFIG_KEY  | 
VALUE  | 
UPDATED_AT  | 
|---|---|---|---|
connector_configuration  | 
warehouse  | 
wh  | 
<timestamp_ntz>  | 
connector_configuration  | 
destination_db  | 
db  | 
<timestamp_ntz>  | 
custom_configuration  | 
journal_table  | 
j_table_name  | 
<timestamp_ntz>  | 
connection_configuration  | 
secret_name  | 
secret_db.schema.the_secret  | 
<timestamp_ntz>  | 
…  | 
…  | 
…  | 
…  |