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
pub use diagnostics;
pub use parser_database;
pub use schema_ast;
Modules
- The interface implemented by connectors for Prisma schema validation and interpretation.
mcf
: Turns a collection ofconfiguration::Datasource
andconfiguration::Generator
into a JSON representation. This is theget_config()
representation.
Macros
Structs
- a
datasource
from the prisma schema. - Either an env var or a string literal.
Enums
Constants
- Generator preview features (alphabetically sorted)
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
- The collection of all available connectors.
- A set of preview features.