MCPcopy
hub / github.com/prisma/prisma / copySymbolsFromSource

Function copySymbolsFromSource

packages/driver-adapter-utils/src/binder.ts:36–40  ·  view source on GitHub ↗
(source: S, target: T)

Source from the content-addressed store, hash-verified

34}
35
36function copySymbolsFromSource<S extends object, T extends object>(source: S, target: T) {
37 const symbols = Object.getOwnPropertySymbols(source)
38 const symbolObject = Object.fromEntries(symbols.map((symbol) => [symbol, true]))
39 Object.assign(target, symbolObject)
40}
41
42export const bindMigrationAwareSqlAdapterFactory = (
43 adapterFactory: SqlMigrationAwareDriverAdapterFactory,

Callers 2

bindSqlAdapterFactoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected