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

Add duckdb.raw_query function #203

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Add duckdb.raw_query function #203

merged 1 commit into from
Sep 24, 2024

Commits on Sep 23, 2024

  1. Add duckdb.raw_query function

    For upcoming features, specifically MotherDuck support it is quite
    useful to be able to send raw queries to DuckDB to inspect the current
    state of the database. Such as `DESCRIBE` or `SELECT * FROM
    duckdb_tables();` or even queries to debug the our current `SECRET`
    support. This adds a small helper function to do this. The result is
    shown in a NOTICE message instead of actually returning them as rows, so
    that there's no need for the `AS (some_column int, some_other_column
    text)` stuff. We'll probably want a function that returns actual rows
    too for use in scripts, but this is a bit easier to use for debugging at
    the moment. It's specifically named `duckdb.raw_query`, so we can use
    `duckdb.query` for the function that actually returns rows.
    JelteF committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    ce3d666 View commit details
    Browse the repository at this point in the history