tpsv grant priveledge, add curl scripts to test
This commit is contained in:
parent
afb9136e30
commit
092b12a8ce
@ -25,6 +25,7 @@ CREATE ROLE api WITH
|
||||
|
||||
--grant schema USAGE
|
||||
GRANT USAGE ON SCHEMA tps TO api;
|
||||
GRANT USAGE ON SCHEMA tpsv TO api;
|
||||
|
||||
--grant current table privledges
|
||||
GRANT SELECT, UPDATE, INSERT, DELETE ON ALL TABLES IN SCHEMA tps TO api;
|
||||
|
1
sample_discovercard/curl_import.cmd
Normal file
1
sample_discovercard/curl_import.cmd
Normal file
@ -0,0 +1 @@
|
||||
curl -v -F upload=@./data.csv http://localhost:81/import?srce=dcard
|
1
sample_discovercard/curl_mapdef.cmd
Normal file
1
sample_discovercard/curl_mapdef.cmd
Normal file
@ -0,0 +1 @@
|
||||
curl -H "Content-Type: application/json" -X POST -d@./mapdef.json http://localhost:81/mapdef_set
|
1
sample_discovercard/curl_mapvals.cmd
Normal file
1
sample_discovercard/curl_mapvals.cmd
Normal file
@ -0,0 +1 @@
|
||||
curl -H "Content-Type: application/json" -X POST -d@./vals.json http://localhost:81/mapval_set
|
1
sample_discovercard/curl_srcedef.cmd
Normal file
1
sample_discovercard/curl_srcedef.cmd
Normal file
@ -0,0 +1 @@
|
||||
curl -H "Content-Type: application/json" -X POST -d@./srce.json http://localhost:81/srce_set
|
Loading…
Reference in New Issue
Block a user