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

Method mapWith

drizzle-orm/src/sql/sql.ts:349–356  ·  view source on GitHub ↗
(decoder: TDecoder)

Source from the content-addressed store, hash-verified

347 }
348
349 mapWith<
350 TDecoder extends
351 | DriverValueDecoder<any, any>
352 | DriverValueDecoder<any, any>['mapFromDriverValue'],
353 >(decoder: TDecoder): SQL<GetDecoderResult<TDecoder>> {
354 this.decoder = typeof decoder === 'function' ? { mapFromDriverValue: decoder } : decoder;
355 return this as SQL<GetDecoderResult<TDecoder>>;
356 }
357
358 inlineParams(): this {
359 this.shouldInlineParams = true;

Callers 15

countFunction · 0.80
countFunction · 0.80
countFunction · 0.80
countFunction · 0.80
countDistinctFunction · 0.80
avgFunction · 0.80
avgDistinctFunction · 0.80
sumFunction · 0.80
sumDistinctFunction · 0.80
maxFunction · 0.80
minFunction · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by 2

countFunction · 0.64
countFunction · 0.64