Skip to content

[Feature Request] Return the last query executed after calling the query() function #288

Open
@ryangriggs

Description

@ryangriggs

It would be very helpful for debugging if we could access the complete text of the last query executed upon running the query() function. For example, if there was a lastQuery property of the mariadb object, where the last SQL query string is stored each time the query() function is executed.

Would also be great if this was updated when a prepared statement was executed, so we could actually see the full query text for debugging.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions