All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dslplatform.compiler.client.parameters.Force Maven / Gradle / Ivy

Go to download

Command line client for interaction with DSL Platform compiler (https://dsl-platform.com)

The newest version!
package com.dslplatform.compiler.client.parameters;

import com.dslplatform.compiler.client.CompileParameter;
import com.dslplatform.compiler.client.Context;

public enum Force implements CompileParameter {
	INSTANCE;

	@Override
	public String getAlias() {
		return "force";
	}

	@Override
	public String getUsage() {
		return null;
	}

	@Override
	public boolean check(final Context context) {
		return true;
	}

	@Override
	public void run(final Context context) {
	}

	@Override
	public String getShortDescription() {
		return "Should unsafe operations (such as destructive migrations) be applied without prompt?";
	}

	@Override
	public String getDetailedDescription() {
		return "If destructive database migration is detected (one which can't be reverted, such as dropping of a column, table or schema),\n" +
				"special confirmation is required for automatic application of database changes with the apply command.\n" +
				"\n" +
				"This option can also be used to create a new database if one doesn't exist or to avoid asking for create folder confirmation.";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy