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

Function mock

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

constructFunction · 0.70

Tested by

no test coverage detected