archive
Archives an item identified by its ID from a specified queue.
Return
A Result containing a boolean which indicates whether the archiving process was successful.
Parameters
The name of the queue from which the item will be archived.
The unique identifier of the item to be archived.
Archives the specified items identified by their IDs from the given queue.
Return
A Result containing a list of successfully archived item IDs or an error if the operation fails.
Parameters
The name of the queue from which the items should be archived.
A list of unique identifiers representing the items to be archived.
Archives a message in the specified queue by calling the pgmq.archive function.
Return
A result encapsulating a boolean value, where true indicates successful archival and false indicates failure or no action taken.
Parameters
The name of the queue where the message resides.
The unique identifier of the message to archive.
suspend fun archive(queue: String, ids: List<Long>): Result<List<Long>>(source)
Archives messages identified by their IDs from a specified queue.
Return
A Result containing a list of IDs that were successfully archived.
Parameters
The name of the queue from which messages are to be archived.
A list of message IDs to archive.