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

Method then

drizzle-seed/src/index.ts:157–171  ·  view source on GitHub ↗
(
		onfulfilled?:
			| ((value: void) => TResult1 | PromiseLike<TResult1>)
			| null
			| undefined,
		onrejected?:
			| ((reason: any) => TResult2 | PromiseLike<TResult2>)
			| null
			| undefined,
	)

Source from the content-addressed store, hash-verified

155 ) {}
156
157 then<TResult1 = void, TResult2 = never>(
158 onfulfilled?:
159 | ((value: void) => TResult1 | PromiseLike<TResult1>)
160 | null
161 | undefined,
162 onrejected?:
163 | ((reason: any) => TResult2 | PromiseLike<TResult2>)
164 | null
165 | undefined,
166 ): Promise<TResult1 | TResult2> {
167 return seedFunc(this.db, this.schema, this.options).then(
168 onfulfilled,
169 onrejected,
170 );
171 }
172
173 catch<TResult = never>(
174 onrejected?:

Callers 15

catchMethod · 0.95
finallyMethod · 0.95
testsFunction · 0.45
testsFunction · 0.45
awsdatapi.test.tsFile · 0.45
testsFunction · 0.45
gel.test.tsFile · 0.45
bun-sql.test.tsFile · 0.45
testsFunction · 0.45
sqliteTest.tsFile · 0.45

Calls 1

seedFuncFunction · 0.85

Tested by

no test coverage detected