tps/templates/map_rm.pgsql

43 lines
717 B
Plaintext
Raw Normal View History

DELETE FROM tps.map_rm;
2017-10-19 17:39:29 -04:00
INSERT INTO
tps.map_rm
SELECT *
FROM
(VALUES
('DCARD', 'First 20',
2017-10-19 17:39:29 -04:00
$j$
{
"defn": [
{
"key": "{Description}",
"field": "f20",
"regex": ".{1,20}"
2017-10-19 17:39:29 -04:00
,"retain":"y"
}
],
"where": [
{
}
]
}
$j$::jsonb
, 2)
,('HUNT', 'First 20',
2017-10-19 17:39:29 -04:00
$j$
{
"defn": [
{
"key": "{Description}",
"field": "f20",
"regex": ".{1,20}"
2017-10-19 17:39:29 -04:00
,"retain":"y"
}
],
"where": [
{
}
]
}
$j$::jsonb
, 1)
) x