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

Function mock

drizzle-orm/src/pglite/driver.ts:154–160  ·  view source on GitHub ↗
(
		config?: DrizzleConfig<TSchema>,
	)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

constructFunction · 0.70

Tested by

no test coverage detected