MCPcopy
hub / github.com/drizzle-team/drizzle-orm / mock

Function mock

drizzle-orm/src/planetscale-serverless/driver.ts:139–145  ·  view source on GitHub ↗
(
		config?: DrizzleConfig<TSchema>,
	)

Source from the content-addressed store, hash-verified

137
138export namespace drizzle {
139 export function mock<TSchema extends Record<string, unknown> = Record<string, never>>(
140 config?: DrizzleConfig<TSchema>,
141 ): PlanetScaleDatabase<TSchema> & {
142 $client: '$client is not available on drizzle.mock()';
143 } {
144 return construct({} as any, config) as any;
145 }
146}

Callers

nothing calls this directly

Calls 1

constructFunction · 0.70

Tested by

no test coverage detected