Module schema_core::json_rpc::types
source · Expand description
API type definitions used by the methods.
Structs
- The input to the
applyMigrations
command. - The output of the
applyMigrations
command. - The input to the
createMigration
command. - The output of the
creatMigration
command. - The type of params accepted by dbExecute.
- The type of results returned by dbExecute.
- The request type for
devDiagnostic
. - The response type for
devDiagnostic
. - The request params for the
diagnoseMigrationHistory
method. - The result type for
diagnoseMigrationHistory
responses. - The type of params for the
diff
method. - The result type for the
diff
method. - The input to the
evaluateDataLoss
command. - The output of the
evaluateDataLoss
command. - Params type for the introspect method.
- Result type for the introspect method.
- The input to the
listMigrationDirectories
command. - The names of the migrations in the migration directory. Empty if no migrations are found.
- The output of the
markMigrationApplied
command. - The input to the
markMigrationRolledBack
command. - The output of the
markMigrationRolledBack
command. - A data loss warning or an unexecutable migration error, associated with the step that triggered it.
- An object with a
schema
field. - Request params for the
schemaPush
method. - Response result for the
schemaPush
method. - An object with a
url
field.
Enums
- The path to a live database taken as input. For flexibility, this can be the path to a Prisma schema file containing the datasource, or the whole Prisma schema as a string, or only the connection string. See variants.
- The location of the live database to connect to.
- A suggested action for the CLI
migrate dev
command. - A supported source for a database schema to diff in the
diff
command. - A diagnostic returned by
diagnoseMigrationHistory
when looking at the database migration history in relation to the migrations directory.