prisma-pglite - v1.0.1
    Preparing search index...

    Function generateInitSql

    • The Prisma CLI does not (yet) support initializing a PGlite database. Instead, this function uses the Prisma CLI to dump a single SQL script which can then be loaded by a PGlite instance to setup the database to match the given schema.

      This currently only supports initializing a database from nothing. Meaning, this cannot be used to apply new migrations to an existing PGlite instance.

      Parameters

      • schemaFilePath: string
      • silent: boolean = false

      Returns Promise<string>

      The raw SQL to be executed