Skip to content

Intercept sql queries outputed from the query builder #807

@rqyrku

Description

@rqyrku

I'm trying got write a plugin for objection that intercepts the sql queries outputed by the query builder and logs them to a .sql file. Is there any way to achieve this?
For ex:
await Person.query();
log:
select "Person".* from "Person"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions