alter regex defs to have a retention flag indicating if the return value shoudl be mapped or thrown away
This commit is contained in:
parent
5369a39f34
commit
351b83a206
10
ubm_data.sql
10
ubm_data.sql
@ -38,11 +38,11 @@ INSERT INTO srce (srce, defn) VALUES ('ADPRP', '{"name": "ADPRP", "type": "csv",
|
|||||||
-- Data for Name: map_rm; Type: TABLE DATA; Schema: tps; Owner: -
|
-- Data for Name: map_rm; Type: TABLE DATA; Schema: tps; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'ACH Debits', '{"where":[{"Transaction":"ACH Debits"}],"type":"extract","defn":[{"regex":"([\\w].*?)(?=$| -|\\s[0-9].*?|\\s[\\w/]+?:)","field":"ini","key":"{Description}"},{"regex":"Comp Name:(.+?)(?=$| Comp|\\w+?:)","field":"compn","key":"{Description}"},{"regex":"Cust ID:.*?(B3X|UDV|U7E|U7C|U7H|U7J).*?(?=$|\\w+?:)","field":"adp_comp","key":"{Description}"},{"regex":"Desc:(.+?) Comp","field":"desc","key":"{Description}"},{"regex":"Discr:(.+?)(?=$| SEC:|\\w+?:)","field":"discr","key":"{Description}"}]}', 2);
|
INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'ACH Debits', '{"defn": [{"key": "{Description}", "field": "ini", "regex": "([\\w].*?)(?=$| -|\\s[0-9].*?|\\s[\\w/]+?:)", "retain": "y"}, {"key": "{Description}", "field": "compn", "regex": "Comp Name:(.+?)(?=$| Comp|\\w+?:)", "retain": "y"}, {"key": "{Description}", "field": "adp_comp", "regex": "Cust ID:.*?(B3X|UDV|U7E|U7C|U7H|U7J).*?(?=$|\\w+?:)", "retain": "y"}, {"key": "{Description}", "field": "desc", "regex": "Desc:(.+?) Comp", "retain": "y"}, {"key": "{Description}", "field": "discr", "regex": "Discr:(.+?)(?=$| SEC:|\\w+?:)", "retain": "y"}], "where": [{"Transaction": "ACH Debits"}]}', 2);
|
||||||
INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Trans Type', '{"where":[{}],"type":"extract","defn":[{"regex":"(.*)","field":"acctn","key":"{AccountName}"},{"regex":"(.*)","field":"trans","key":"{Transaction}"},{"regex":"([\\w].*?)(?=$| -|\\s[0-9].*?|\\s[\\w/]+?:)","field":"ini","key":"{Description}"}]}', 1);
|
INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Trans Type', '{"defn": [{"key": "{AccountName}", "field": "acctn", "regex": "(.*)", "retain": "n"}, {"key": "{Transaction}", "field": "trans", "regex": "(.*)", "retain": "n"}, {"key": "{Description}", "field": "ini", "regex": "([\\w].*?)(?=$| -|\\s[0-9].*?|\\s[\\w/]+?:)", "retain": "y"}], "where": [{}]}', 1);
|
||||||
INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Wires Out', '{"where":[{"Transaction":"Intl Money Transfer Debits"},{"Transaction":"Money Transfer DB - Wire"}],"type":"extract","defn":[{"regex":"([\\w].*?)(?=$| -|\\s[0-9].*?|\\s[\\w/]+?:)","field":"ini","key":"{Description}"},{"regex":"BENEFICIARY:(.+?) AC/","field":"bene","key":"{Description}"},{"regex":"AC/(\\w*) .*AC/(\\w*) ","field":"accts","key":"{Description}"}]}', 2);
|
INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Wires Out', '{"defn": [{"key": "{Description}", "field": "ini", "regex": "([\\w].*?)(?=$| -|\\s[0-9].*?|\\s[\\w/]+?:)", "retain": "y"}, {"key": "{Description}", "field": "bene", "regex": "BENEFICIARY:(.+?) AC/", "retain": "y"}, {"key": "{Description}", "field": "accts", "regex": "AC/(\\w*) .*AC/(\\w*) ", "retain": "y"}], "where": [{"Transaction": "Intl Money Transfer Debits"}, {"Transaction": "Money Transfer DB - Wire"}]}', 2);
|
||||||
INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Currency', '{"where":[{"Transaction":"Miscellaneous Credits"},{"Transaction":"Miscellaneous Debits"}],"type":"extract","defn":[{"regex":"([\\w].*?)(?=$| -|\\s[0-9].*?|\\s[\\w/]+?:)","field":"ini","key":"{Description}"},{"regex":".*(DEBIT|CREDIT).*(USD|CAD).*(?=DEBIT|CREDIT).*(?=USD|CAD).*","field":"curr1","key":"{Description}"},{"regex":".*(?=DEBIT|CREDIT).*(?=USD|CAD).*(DEBIT|CREDIT).*(USD|CAD).*","field":"curr2","key":"{Description}"}]}', 2);
|
INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Currency', '{"defn": [{"key": "{Description}", "field": "ini", "regex": "([\\w].*?)(?=$| -|\\s[0-9].*?|\\s[\\w/]+?:)", "retain": "y"}, {"key": "{Description}", "field": "curr1", "regex": ".*(DEBIT|CREDIT).*(USD|CAD).*(?=DEBIT|CREDIT).*(?=USD|CAD).*", "retain": "y"}, {"key": "{Description}", "field": "curr2", "regex": ".*(?=DEBIT|CREDIT).*(?=USD|CAD).*(DEBIT|CREDIT).*(USD|CAD).*", "retain": "y"}], "where": [{"Transaction": "Miscellaneous Credits"}, {"Transaction": "Miscellaneous Debits"}]}', 2);
|
||||||
INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Check Number', '{"where":[{"Transaction":"Checks Paid"}],"type":"extract","defn":[{"regex":"[^0-9]*([0-9]*)\\s|$","field":"checkn","key":"{Description}"}]}', 2);
|
INSERT INTO map_rm (srce, target, regex, seq) VALUES ('PNCC', 'Check Number', '{"defn": [{"key": "{Description}", "field": "checkn", "regex": "[^0-9]*([0-9]*)\\s|$", "retain": "y"}], "where": [{"Transaction": "Checks Paid"}]}', 2);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user