-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump version to 1.5, add upgrade script, add tests for DELETE with data
- Loading branch information
Showing
11 changed files
with
85 additions
and
43 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.4.0", | ||
"version": "1.5.0", | ||
"maintainer": [ | ||
"Paul Ramsey <[email protected]>" | ||
], | ||
|
@@ -21,9 +21,9 @@ | |
}, | ||
"provides": { | ||
"http": { | ||
"file": "http--1.4.sql", | ||
"file": "http--1.5.sql", | ||
"docfile": "README.md", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"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
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,5 @@ | ||
|
||
CREATE OR REPLACE FUNCTION http_delete(uri VARCHAR, content VARCHAR, content_type VARCHAR) | ||
RETURNS http_response | ||
AS $$ SELECT @[email protected](('DELETE', $1, NULL, $3, $2)::@[email protected]_request) $$ | ||
LANGUAGE 'sql'; |
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 |
---|---|---|
|
@@ -81,6 +81,11 @@ CREATE OR REPLACE FUNCTION http_patch(uri VARCHAR, content VARCHAR, content_type | |
AS $$ SELECT @[email protected](('PATCH', $1, NULL, $3, $2)::@[email protected]_request) $$ | ||
LANGUAGE 'sql'; | ||
|
||
CREATE OR REPLACE FUNCTION http_delete(uri VARCHAR) | ||
RETURNS http_response | ||
AS $$ SELECT @[email protected](('DELETE', $1, NULL, NULL, NULL)::@[email protected]_request) $$ | ||
LANGUAGE 'sql'; | ||
|
||
CREATE OR REPLACE FUNCTION http_delete(uri VARCHAR, content VARCHAR, content_type VARCHAR) | ||
RETURNS http_response | ||
AS $$ SELECT @[email protected](('DELETE', $1, NULL, $3, $2)::@[email protected]_request) $$ | ||
|
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,3 +1,3 @@ | ||
default_version = '1.4' | ||
default_version = '1.5' | ||
module_pathname = '$libdir/http' | ||
comment = 'HTTP client for PostgreSQL, allows web page retrieval inside the database.' |
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