NiwenPrism

object NiwenPrism

An internal, extremely hacky parser for Prisma schema file. The main objective is to retrieve @db.xyz attributes.

Prisma does not expose all attributes through its DMMF (the model passed to generators like PrismaKT), so we have to resort to this to retrieve proper types.

Related Prisma issue

Functions

Link copied to clipboard

Parse a list of tokens to a parser result of PRoot.

Link copied to clipboard

Parse a list of tokens to a parser result of PRoot, with debug information enabled.

Link copied to clipboard

Tokenize the provided string using the Niwen Prism parser.