Skip to content

Commit

Permalink
Merge README
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrygusev committed Aug 31, 2013
2 parents 0e5e8ce + a2790da commit 1d158b4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ CompanyName, CompanyNumber,RegAddress.CareOf,RegAddress.POBox,RegAddress.Address
"updated_at": { "sql": "current_timestamp" }
},
"transform": {
"post_code": { "function": "uppercase" }
"post_code": { "function": "uppercase" },
"address_line_2" : { "function": "trimToNull" }
},
"scripting": [
"functions.js"
Expand All @@ -90,6 +91,12 @@ CompanyName, CompanyNumber,RegAddress.CareOf,RegAddress.POBox,RegAddress.Address
```javascript
"use strict";

importPackage(org.apache.commons.lang3);

function trimToNull(columnName, row) {
return StringUtils.trimToNull(row[columnName]);
}

function uppercase(columnName, row) {
return row[columnName].toUpperCase()
}
Expand Down

0 comments on commit 1d158b4

Please sign in to comment.