Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Polish

Jeśli masz problem ze zrozumieniem jak działa zadanie zaplanowane, sprawdź opis: Zadanie zaplanowane

Panel
bgColorwhite
titleBGColorlight
titlePodstawowe informacje

Pakiet: com.suncode.plugin.scheduled_tasks.RewriteDataFromDatasourceToDb

Dostępna od wersji: 1.0.1

Panel
bgColorwhite
titleBGColorlight
titleWymagania

Co najmniej jedno zdefiniowane źródło danych umożliwiające operację odczytu danych.

Panel
bgColorwhite
titleBGColorlight
titleOpis

Zadanie zaplanowane pozwalające na przepisanie danych ze źródła danych do bazy danych.

 
Panel
 panel
bgColor
white
titleBGColorlight
titleParametry konfiguracyjne
Nazwa parametruTyp parametruOpisUwagi i ograniczenia
Id źródła danych*TekstId źródła danych z którego dane zostaną przepisane. 
Nazwa bazy danych*Tekst

Nazwa bazy w której dane zostaną zapisane.

Alias bazy DBExplorera.
Nazwa schematu w bazie danych*TekstSchemat w bazie danych, w którym znajduje się tabela docelowa.

 

Nazwa tabeli*TekstNazwa tabeli w której zostaną zapisane dane. 
Mapowanie parametrów*Tekst

Mapowanie parametrów wyjściowych źródła na odpowiadające nazwy kolumn z tabeli z bazy danych.

Wzór mapowania parametrów:

<parametrŹródła>=<kolumnaTabeli>

Kolejne mapowania powinny być rozdzielane za pomocą przecinka np.

<parametrŹródła1>=<kolumnaTabeli1>,<parametrŹródła2>=<kolumnaTabeli2>

Typ synchronizacji*TekstTyp synchronizacji danych.

Do wyboru są następujące rodzaje:

  • insert- tylko dopisuje,
  • overwrite- usuwa wszystkie rekordy i dodaje nowe,
  • upsert- dopisz lub zaktualizuj, jeżeli wartość podana w parametrze "Klucz" już istnieje.
KluczTekstKlucz, którego wartosć będzie sprawdzana przy typie synchronizacji "upsert". 

Parametr*- pole wymagane

Warning

Dane ze źródła danych nie zostaną pomyślnie zapisane w tabeli w bazie danych, jeżeli zwrócone wartości nie są zgodne ze zdefiniowanymi typami kolumn tabeli.

Panel
bgColorwhite
titleBGColorlight
titlePrzykładowa konfiguracja

 

 

English
Info

If you have trouble understanding how the action works, check the descriptionScheduled task

Panel
bgColorwhite
titleBGColorlight
titleDescription

A scheduled task that allows you to rewrite data from a datasource to a database.

Panel
bgColorwhite
titleBGColorlight
titleRequirements

One or more defined data sources that enable the data read operation.

Panel
bgColorwhite
titleBGColorlight
titleConfiguration parameters
Name of the parameterParameter typeDescriptionNotes and restrictions
Datasource id*TextId of the datasource from which the data will be rewritten. 
Database name*TextThe name of the database where the data will be saved. 
Schema name in database*TextThe schema in the database where the target table exists. 
Table name*TextName of the table in which the data will be saved. 
Parameters mappings*TextMapping the output parameters from data source to the corresponding column names from the database table.

Parameter mapping formula:

<dataSourceParameter>=<TableColumn>

Subsequent mappings should be separated by a comma, e.g.

<dataSourceParameter1>=<TableColumn1>,<dataSourceParameter2>=<TableColumn2>

Synchronization type*TextData synchronization type.

The following types are available:

  • insert (only adds),
  • overwrite (removes all records and adds new ones),
  • upsert (add or update, if the value given in the "Key" already exists).
KeyTextThe key value of which will be checked with the "upsert" synchronization type. 

Parameter*- required field

Warning

Data from the data source will not be successfully written to the database table if the returned values do not match the defined table column types.

Panel
bgColorwhite
titleBGColorlight
titleSample configuration