Skip to content

Converting to new drizzle version (queries)#2

Open
jose-donato wants to merge 2 commits intomainfrom
feature/new_drizzle_join
Open

Converting to new drizzle version (queries)#2
jose-donato wants to merge 2 commits intomainfrom
feature/new_drizzle_join

Conversation

@jose-donato
Copy link
Owner

No description provided.

@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: f5ce04c
Status: ✅  Deploy successful!
Preview URL: https://afdf7d06.race-stack.pages.dev
Branch Preview URL: https://feature-new-drizzle-join.race-stack.pages.dev

View logs

@JulesBlm
Copy link

JulesBlm commented Jul 5, 2023

If you remove the explicit return type of the getDbFromContext function, the return type will be inferred as DrizzleD1Database<typeof schema> and you'll be able to see the TS hints for the Drizzle queries.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants