forked from pramsey/pgsql-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "http", | ||
"abstract": "HTTP client for PostgreSQL", | ||
"description": "HTTP allows you to get the content of a web page in a SQL function call.", | ||
"version": "1.2", | ||
"version": "1.3", | ||
"maintainer": [ | ||
"Paul Ramsey <[email protected]>" | ||
], | ||
|
@@ -21,9 +21,9 @@ | |
}, | ||
"provides": { | ||
"http": { | ||
"file": "http--1.2.sql", | ||
"file": "http--1.3.sql", | ||
"docfile": "README.md", | ||
"version": "1.2", | ||
"version": "1.3", | ||
"abstract": "HTTP client for PostgreSQL" | ||
}, | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ALTER DOMAIN http_method DROP CONSTRAINT http_method_check; | ||
ALTER DOMAIN http_method ADD CHECK ( | ||
VALUE ILIKE 'get' OR | ||
VALUE ILIKE 'post' OR | ||
VALUE ILIKE 'put' OR | ||
VALUE ILIKE 'delete' OR | ||
VALUE ILIKE 'patch' OR | ||
VALUE ILIKE 'head' | ||
); | ||
|
||
CREATE OR REPLACE FUNCTION http_patch(uri VARCHAR, content VARCHAR, content_type VARCHAR) | ||
RETURNS http_response | ||
AS $$ SELECT http(('PATCH', $1, NULL, $3, $2)::http_request) $$ | ||
LANGUAGE 'sql'; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
default_version = '1.2' | ||
default_version = '1.3' | ||
module_pathname = '$libdir/http' | ||
relocatable = true | ||
comment = 'HTTP client for PostgreSQL, allows web page retrieval inside the database.' |