-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return bools from archive/delete_batch (#95)
* Return booleans from archive/delete_batch * add archive_batch test * Refactor archive in terms of archive_batch * fix table names * Remove obsolete test * fix typo * lint * Replace IN with = ANY * bump versions and add migration scripts * try * add archive * in prep for rebase --------- Co-authored-by: Adam Hendel <[email protected]>
- Loading branch information
1 parent
553d8ba
commit a4bd31c
Showing
7 changed files
with
161 additions
and
142 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,30 @@ | ||
ALTER EXTENSION pgmq DROP FUNCTION pgmq_delete(TEXT, bigint[]); | ||
DROP FUNCTION pgmq_delete(TEXT, bigint[]); | ||
|
||
-- src/lib.rs:215 | ||
-- pgmq::pgmq_delete | ||
CREATE FUNCTION "pgmq_delete"( | ||
"queue_name" TEXT, /* &str */ | ||
"msg_ids" bigint[] /* alloc::vec::Vec<i64> */ | ||
) RETURNS TABLE ( | ||
"pgmq_delete" bool /* bool */ | ||
) | ||
STRICT | ||
LANGUAGE c /* Rust */ | ||
AS 'MODULE_PATHNAME', 'pgmq_delete_batch_wrapper'; | ||
|
||
|
||
ALTER EXTENSION pgmq DROP FUNCTION pgmq_archive(TEXT, bigint[]); | ||
DROP FUNCTION pgmq_archive(TEXT, bigint[]); | ||
|
||
-- src/lib.rs:260 | ||
-- pgmq::pgmq_archive | ||
CREATE FUNCTION "pgmq_archive"( | ||
"queue_name" TEXT, /* &str */ | ||
"msg_ids" bigint[] /* alloc::vec::Vec<i64> */ | ||
) RETURNS TABLE ( | ||
"pgmq_archive" bool /* bool */ | ||
) | ||
STRICT | ||
LANGUAGE c /* Rust */ | ||
AS 'MODULE_PATHNAME', 'pgmq_archive_batch_wrapper'; |
Oops, something went wrong.