WonderPandaDev
WonderPandaDev
Explore posts from servers
DTDrizzle Team
Created by WonderPandaDev on 3/5/2025 in #help
Querybuilder only Drizzle instance
Sorry if this is obvious and if I've missed it in the docs but I didn't see anything. Is there a way to create a drizzle instance for a given dialect (SQLite in my case) that doesn't require an actual DB instance to connect to? I'll still want to initialize it with a schema. My particular use case is being able to pass it into the drizzle-graphql so I can build a GraphQL schema but I don't want the actual resolvers to be implemented in this layer. Kysely calls these "Cold" instances and provides a DummyDriver abstraction that allows the instance to be used for query building but not actual execution https://kysely.dev/docs/recipes/splitting-query-building-and-execution#cold-kysely-instances
1 replies