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
Splitting query building and execution | Kysely
Kysely is primarily a type-safe sql query builder.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?