import { LiftEngine } from '@prisma/lift' ; import { DataSource } from '@prisma/generator-helper' ; import { DMMF } from '@prisma/client/runtime/dmmf-types' ; import { dmmfToDml } from '@prisma/sdk' ; import * as fs from 'fs' ; import * as os from 'os' ; import * as path from 'path' ; export interface LiftMigrationOptions { id : string ; projectDir : string ; tmpPrismaSchemaPath : string ; datasources : DataSource [ ] ; dmmf : DMMF . Document ; } param LiftOptions export async function migrateLift ( { id , projectDir , datasources , tmpPrismaSchemaPath , dmmf , } ) { return { id , datamodel : '' } ; } param id export function getTmpPrismaSchemaPath ( id ) { const tmpDir = os . tmpdir ( ) ; const dbFile = path . join ( tmpDir , `./${ id }-schema.prisma` ) ; return dbFile ; }