Skip to content
Discussion options

You must be logged in to vote

Hey, this is on our radar but we're in the middle of a large refactor heading toward v1 so it won't land in the library anytime soon.

In the meantime, here's a self-contained shim you can drop into your own project. Do not wire this up as a full PgQueuer driver — it has no LISTEN/NOTIFY support and will blow up if anything tries to use it for consuming.
It is strictly for enqueuing inside an existing transaction.

from __future__ import annotations

import asyncio
from typing import Any, Callable

import psycopg
from psycopg import AsyncRawCursor
from psycopg.rows import dict_row
from typing_extensions import Self

from pgqueuer.adapters.persistence.queries import Queries
from pgqueuer.core.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yqiang
Comment options

@janbjorge
Comment options

Answer selected by janbjorge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants