too much to list
This commit is contained in:
parent
92d56aaba2
commit
44db887b6a
731
deploy/setup.sql
731
deploy/setup.sql
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
7
interface/import/test/test_srce_import.sql
Normal file
7
interface/import/test/test_srce_import.sql
Normal file
File diff suppressed because one or more lines are too long
@ -5,7 +5,7 @@
|
||||
{
|
||||
"key": "{Description}",
|
||||
"map": "y",
|
||||
"flag": "g",
|
||||
"flag": "",
|
||||
"field": "f20",
|
||||
"regex": ".{1,20}",
|
||||
"retain": "y"
|
||||
|
@ -10,7 +10,7 @@ FROM
|
||||
{
|
||||
"key": "{Description}",
|
||||
"map": "y",
|
||||
"flag": "g",
|
||||
"flag": "",
|
||||
"field": "f20",
|
||||
"regex": ".{1,20}",
|
||||
"retain": "y"
|
||||
|
@ -1,4 +1,26 @@
|
||||
DROP FUNCTION tps.report_unmapped;
|
||||
CREATE OR REPLACE FUNCTION tps.jsonb_concat(
|
||||
state jsonb,
|
||||
concat jsonb)
|
||||
RETURNS jsonb AS
|
||||
$BODY$
|
||||
BEGIN
|
||||
--RAISE notice 'state is %', state;
|
||||
--RAISE notice 'concat is %', concat;
|
||||
RETURN state || concat;
|
||||
END;
|
||||
$BODY$
|
||||
LANGUAGE plpgsql VOLATILE
|
||||
COST 100;
|
||||
|
||||
DROP AGGREGATE IF EXISTS tps.jsonb_concat_obj(jsonb);
|
||||
CREATE AGGREGATE tps.jsonb_concat_obj(jsonb) (
|
||||
SFUNC=tps.jsonb_concat,
|
||||
STYPE=jsonb,
|
||||
INITCOND='{}'
|
||||
);
|
||||
|
||||
|
||||
DROP FUNCTION IF EXISTS tps.report_unmapped;
|
||||
CREATE FUNCTION tps.report_unmapped(_srce text) RETURNS TABLE
|
||||
(
|
||||
source text,
|
||||
|
@ -4,7 +4,8 @@
|
||||
"loading_function":"csv",
|
||||
"constraint":[
|
||||
"{Trans. Date}",
|
||||
"{Post Date}"
|
||||
"{Post Date}",
|
||||
"{Description}"
|
||||
],
|
||||
"schemas":{
|
||||
"default":[
|
||||
|
Loading…
Reference in New Issue
Block a user