Options
All
  • Public
  • Public/Protected
  • All
Menu

prisma-schema-sorter

Index

Type aliases

PrismaSchemaSectionType

PrismaSchemaSectionType: { name: string; value: string }

Type declaration

  • name: string
  • value: string

Functions

Const ascendingSorter

Const sortPrismaSchema

  • sortPrismaSchema(path: string): Promise<void>
  • Sort the prisma schema found at the given path in ascending order.

    Example (es module)

    import { sortPrismaSchema } from 'prisma-schema-sorter'
    await sortPrismaSchema("./prisma/schema.prisma")
    // => Success
    

    Example (commonjs)

    var sortPrismaSchema = require('prisma-schema-sorter').sortPrismaSchema;
    sortPrismaSchema().then();
    // => Success
    

    Parameters

    • path: string

      path to the prisma schema

    Returns Promise<void>

Generated using TypeDoc