Skip to content

Async engine creation from bindings #20

Description

@gorandp

Hi,

Using create_engine_from_binding() creates a sync engine which when running queries blocks the event loop for async functions because it is not awaitable. Is it possible to make a create_async_engine_from_binding()? This way, it isn't necessary to use the D1 API to create an async engine. Or am I missing something and it isn't blocking the event loop?

Thanks!
Goran

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions