Skip to content
This repository was archived by the owner on Mar 12, 2022. It is now read-only.

Commit 2bab821

Browse files
committed
Change GETL version to 4.5.0
1 parent 9850645 commit 2bab821

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group 'net.sourceforge.getl'
9-
version '4.4.2'
9+
version '4.5.0'
1010

1111
repositories {
1212
mavenLocal()

src/main/groovy/getl/examples/data/Db.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ useH2Connection h2Connection('db:con', true) {
1919
FileUtils.ValidFilePath(connectDatabase)
2020

2121
// Specify the configuration section in which logins to the database are stored
22-
loginsConfigStore = 'db_logins'
22+
storedLogins = configContent.db_logins as Map
2323

2424
// Set default schema for tables
2525
schemaName = 'demo'

src/main/groovy/getl/examples/process/events/LoadEventFiles.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ files('events') {
2323
}
2424

2525
// Processing events files
26-
fileProcessing(files('events')) {
26+
fileman.processing(files('events')) {
2727
// Remove processed file
2828
removeFiles = true
2929
// Remove empty directory after processing files
@@ -53,7 +53,7 @@ fileProcessing(files('events')) {
5353
fileName = inf.file.name
5454
}
5555
// Copy rows from json file to events table
56-
copyRows(json('json:events'), h2Table('db:events'))
56+
etl.copyRows(json('json:events'), h2Table('db:events'))
5757
// Confirm success of file processing operation
5858
inf.result = inf.completeResult
5959

src/main/groovy/getl/examples/process/init/GenerateDataToTables.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ useH2Connection h2Connection('con') {
2929
// Work with table "Price"
3030
h2Table('prices') {
3131
// Generate and write data to table "Price"
32-
rowsTo {
32+
etl.rowsTo {
3333
// Code for inserting records into a table
3434
writeRow { add -> // Write descriptor
3535
add id: 1, name: 'Apple', create_date: DateUtils.now, price: 60.50, is_active: true, description: 'Not a macintosh.\nThis is fruit.'
@@ -51,7 +51,7 @@ h2Table('prices') {
5151
}
5252

5353
// Copy customer data from the Xml resource file "customers.xml" to tables "Customers" and "Customers_Phones"
54-
copyRows(xml('xml:customers'), h2Table('customers')) {
54+
etl.copyRows(xml('xml:customers'), h2Table('customers')) {
5555
// Adding an write to the child table "Customers_Phones"
5656
childs('phones', h2Table('customers.phones')) {
5757
// Processing the child structure phones

src/main/groovy/getl/examples/process/sales/GenerateSales.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ h2Table('sales') {
3232
def seq = sequence('sales')
3333

3434
// Generate and write data to the sales table
35-
rowsTo {
35+
etl.rowsTo {
3636
// Lookup price map structure
3737
def priceLookup = h2Table('prices').lookup { key = 'id'; strategy = ORDER_STRATEGY }
3838

src/test/groovy/getl/examples/process/EventsTest.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class EventsTest extends ExampleTest {
3434
historypoint('db:points') { clearValue('events') }
3535

3636
// Clear events storage
37-
fileCleaner(files('events')) {
37+
fileman.cleaner(files('events')) {
3838
useSourcePath { mask = '{date}/*' }
3939
removeFiles = true
4040
removeEmptyDirs = true

0 commit comments

Comments
 (0)