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

Function mock

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

Source from the content-addressed store, hash-verified

148
149export namespace drizzle {
150 export function mock<TSchema extends Record<string, unknown> = Record<string, never>>(
151 config?: DrizzleConfig<TSchema>,
152 ): NeonDatabase<TSchema> & {
153 $client: '$client is not available on drizzle.mock()';
154 } {
155 return construct({} as any, config) as any;
156 }
157}

Callers

nothing calls this directly

Calls 1

constructFunction · 0.70

Tested by

no test coverage detected