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

[BUG]: db.execute not defined - can't follow documentation #2331

Open
kunanyi opened this issue May 16, 2024 · 0 comments
Open

[BUG]: db.execute not defined - can't follow documentation #2331

kunanyi opened this issue May 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kunanyi
Copy link

kunanyi commented May 16, 2024

What version of drizzle-orm are you using?

0.30.10

What version of drizzle-kit are you using?

0.30.10

Describe the Bug

The documentation says I can run db.execute(....)

https://orm.drizzle.team/docs/sql#sql-template

But I get "db.execute is not a function"

I can use db.select(). And I can use execute() at the end of a select chain. I just can't use a raw execute

Am trying to run this on D1 to get a list of tables: await db.execute(sql'PRAGMA table_list');

(note:with back ticks)

Expected behavior

Was expecting db.execute() to be available, as in documentation

@kunanyi kunanyi added the bug Something isn't working label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant