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

Function mock

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

Source from the content-addressed store, hash-verified

119
120export namespace drizzle {
121 export function mock<TSchema extends Record<string, unknown> = Record<string, never>>(
122 config?: DrizzleConfig<TSchema>,
123 ): PostgresJsDatabase<TSchema> & {
124 $client: '$client is not available on drizzle.mock()';
125 } {
126 return construct({
127 options: {
128 parsers: {},
129 serializers: {},
130 },
131 } as any, config) as any;
132 }
133}

Callers

nothing calls this directly

Calls 1

constructFunction · 0.70

Tested by

no test coverage detected