Skip to content

support identifying explain queries #44

Description

@MasterOdin

For example, EXPLAIN SELECT 1, where this is currently identified as UNKNOWN. We should probably support this as it's somewhat common, and easy to support (just detect if first word in EXPLAIN.

Support for it would probably be adding a new command type (EXPLAIN) and execution type (EXPLAIN) as it doesn't really make sense to call it a LISTING or MODIFICATION.

This would improve the state of things for consumers where while the pg npm package will return EXPLAIN as a command type which we can leverage, sqlite on the other hand would just have UNKNOWN.

Any reason not to do this @rathboma, other than perhaps that different databases have different outputs for explain (e.g. sqlite vs postgresql).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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