Skip to content

Support for PRAGMA in duckdb #9

@stereosteve

Description

@stereosteve

Thanks for making this project. Nice for working with duckdb.

I'm trying to use PRAGMA with the FTS extension. When trying to create a FTS index:

await sql`PRAGMA create_fts_index('users', 'id', '*')`

Results in:

error: Invalid Input Error: Cannot prepare multiple statements at once!

Seems like either need:

  • A way to get the underlying connection from the pool so you can use the full API
  • Or a way to run sql without going thru a prepared statement.

I think in postgres.js this would be the .simple() api

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