New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@prisma-next/psl-printer

Package Overview
Dependencies
Maintainers
4
Versions
574
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma-next/psl-printer

PSL printer: deterministic Prisma Schema Language (.prisma) output from a PslDocumentAst

Source
npmnpm
Version
0.14.0-dev.82
Version published
Weekly downloads
1.7K
-32.36%
Maintainers
4
Weekly downloads
 
Created
Source

@prisma-next/psl-printer

Internal package. This package is an implementation detail of prisma-next and is published only to support its runtime. Its API is unstable and may change without notice. Do not depend on this package directly; install prisma-next instead.

Prints Prisma Schema Language (PSL) from PslDocumentAst (@prisma-next/framework-components/psl-ast).

Overview

@prisma-next/psl-printer renders deterministic PSL text from a PslDocumentAst (defined in @prisma-next/framework-components/psl-ast). The package is target-agnostic: SQL → AST construction lives in the SQL family (@prisma-next/family-sql's inferPslContract capability).

Responsibilities

  • Convert structured AST (model, field, enum, types) into valid PSL output.
  • Preserve @map / @@map and relation attributes from AST nodes.
  • Generate deterministic output so snapshot-based tests remain stable.

Dependencies

  • Depends on
    • @prisma-next/framework-components
  • Used by
    • @prisma-next/cli (consumes printPsl(ast) after the SQL family produces the AST)
    • @prisma-next/family-sql (tests; consumes the printer to verify AST construction)
  • docs/Architecture Overview.md
  • docs/architecture docs/subsystems/2. Contract Emitter & Types.md

FAQs

Package last updated on 15 Jul 2026

Related posts