Function prisma_fmt::get_dmmf
source · pub fn get_dmmf(get_dmmf_params: String) -> Result<String, String>
Expand description
This is the same command as get_dmmf()
Params is a JSON string with the following shape:
ⓘ
interface GetDmmfParams {
prismaSchema: string
}
Params example:
ⓘ
{
"prismaSchema": <the prisma schema>,
}
The response is a JSON string with the following shape:
ⓘ
type GetDmmfSuccessResponse = any // same as QE getDmmf
interface GetDmmfErrorResponse {
error: {
error_code?: string
message: string
}
}
type GetDmmfResponse = GetDmmfErrorResponse | GetDmmfSuccessResponse