fix: Remove Legacy DmmfToDml Cli Command
@@ -12,13 +12,6 @@ use std::sync::Arc;
use datamodel::dmmf::Datamodel;
use std::fs::File;
-#[derive(Deserialize, Debug)]
-#[serde(rename_all = "camelCase")]
-pub struct DmmfToDmlInput {
- pub dmmf: String,
- pub config: serde_json::Value,
-}
-
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct DmmfFileToDmlInput {
@@ -35,7 +28,6 @@ pub struct GetConfigInput {
pub enum CliCommand {
Dmmf(BuildMode),
DmmfFileToDml(DmmfFileToDmlInput),
- DmmfToDml(DmmfToDmlInput),
GetConfig(GetConfigInput),
}
@@ -103,16 +95,6 @@ impl CliCommand {
Ok(())
}
- fn dmmf_to_dml(input: DmmfToDmlInput) -> PrismaResult<()> {
- let datamodel = datamodel::dmmf::parse_from_dmmf(&input.dmmf);
- let config = datamodel::config_from_mcf_json_value(input.config);
- let serialized = datamodel::render_datamodel_and_config_to_string(&datamodel, &config)?;
-
- println!("{}", serialized);
-
- Ok(())
- }
-
fn get_config(input: GetConfigInput) -> PrismaResult<()> {
let config = load_configuration(&input.datamodel)?;
let json = datamodel::config_to_mcf_json_value(&config);
