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

Function mock

drizzle-orm/src/vercel-postgres/driver.ts:116–122  ·  view source on GitHub ↗
(
		config?: DrizzleConfig<TSchema>,
	)

Source from the content-addressed store, hash-verified

114
115export namespace drizzle {
116 export function mock<TSchema extends Record<string, unknown> = Record<string, never>>(
117 config?: DrizzleConfig<TSchema>,
118 ): VercelPgDatabase<TSchema> & {
119 $client: '$client is not available on drizzle.mock()';
120 } {
121 return construct({} as any, config) as any;
122 }
123}

Callers

nothing calls this directly

Calls 1

constructFunction · 0.70

Tested by

no test coverage detected