Search
 
SCRIPT & CODE EXAMPLE
 

SQL

call rest api from postgresql

CREATE OR REPLACE FUNCTION restful.put(auri character varying, ajson_text text)
 RETURNS text
 LANGUAGE plperlu
 SECURITY DEFINER
AS $function$
  use REST::Client;  
  use Encode qw(encode);
  my $client = REST::Client->new();    
  $client->getUseragent()->proxy( 'https', 'http://some-proxy/' ); # use for proxy authentication
  $client->addHeader('Content-Type', 'application/json');          # headers
  $client->POST( $_[0], encode('UTF-8', $_[1]));                   # encoding
  return $client->responseContent();  
$function$
Comment

PREVIOUS NEXT
Code Example
Sql :: sql server enterprise 
Sql :: mysql update one table from another table multiple columns 
Sql :: identity column in sql server 
Sql :: sqlite3.OperationalError: near "WHERE": syntax error 
Sql :: select from table and insert into table in sql 
Sql :: sql limit results 
Sql :: union all in sql 
Sql :: 18446744073709551615 mariadb left join order by 
Sql :: install mysql ubuntu 20.10 
Sql :: SQL Server dynamic pivot unknown number of columns 
Sql :: exectuer myssql .sql 
Sql :: sql server set complex constraints 
Sql :: how to select only first 3 characters in sql 
Sql :: call procedure in wordpress 
Sql :: can we rollback data that are deleted using delete clause? 
Sql :: hashpass 
Sql :: mysql set variable in a session 
Sql :: mysql wait_timeout 
Sql :: Test SQL snippets 
Sql :: mysql aspas simples 
Sql :: how to create a new shema using query languaage 
Sql :: acceso denegado en msql 
Sql :: sql equal then arrow 
Sql :: oracle executing sqlplus commands and waiting for completion 
Sql :: grepper sql workbench download 
Sql :: get all databases and their tables without primary key mysql 
Sql :: oracle timestamp +1h 
Sql :: dump a single table named mytab 
Sql :: subquery aggregation 
Sql :: ring get columns count in the query result using the odbc_colcount() 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =