Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support asyncpg #107

Open
bvsn opened this issue Dec 27, 2022 · 0 comments
Open

Support asyncpg #107

bvsn opened this issue Dec 27, 2022 · 0 comments

Comments

@bvsn
Copy link

bvsn commented Dec 27, 2022

Due to my connection setup:

ASYNC_URL = URL("postgresql+asyncpg", username=username, password=password, host=host, port=port, database=database)

connectable = AsyncEngine(create_engine(ASYNC_URL, poolclass=pool.NullPool, echo=False, future=True))

I got an error: sqlalchemy.exc.ObjectNotExecutableError. It may be fixed by setting future=False, but then the asyncpg expectation was raised:

  File "/Users/path/lib/python3.10/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 682, in _handle_exception
    raise translated_error from error
sqlalchemy.exc.InterfaceError: (sqlalchemy.dialects.postgresql.asyncpg.InterfaceError) <class 'asyncpg.exceptions._base.InterfaceError'>: the server expects 0 arguments for this query, 1 was passed

During running the sync_trigger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant