Crate psl_core

source ·
Expand description

PSL core

This crate is the entry point for the core of the PSL implementation. It exposes the Connector trait and relies on its implementors, but it is itself decoupled from any specific connector.

Re-exports

Modules

  • The interface implemented by connectors for Prisma schema validation and interpretation.
  • mcf: Turns a collection of configuration::Datasource and configuration::Generator into a JSON representation. This is the get_config() representation.

Macros

Structs

Enums

Constants

Functions

  • Is this a valid type name for the Prisma Client API?
  • Loads all configuration blocks from a datamodel using the built-in source definitions.
  • Retrieves a Prisma schema without validating it. You should only use this method when actually validating the schema is too expensive computationally or in terms of bundle size (e.g., for query-engine-wasm).
  • Returns either the reformatted schema, or the original input if we can’t reformat. This happens if and only if the source does not parse to a well formed AST.
  • The most general API for dealing with Prisma schemas. It accumulates what analysis and validation information it can, and returns it along with any error and warning diagnostics.

Type Aliases