// Path: dbpatch-core/src/main/java/org/jsoftware/dbpatch/command/SkipErrorsCommand.java
// public class SkipErrorsCommand extends AbstractSingleConfDbPatchCommand {
// 
//     public SkipErrorsCommand(EnvSettings envSettings) {
//         super(envSettings);
//     }
// 
// 
//     protected void executeInternal() throws Exception {
//         Connection connection = manager.getConnection();
//         Statement statement = null;
//         ResultSet rs = null;
//         PreparedStatement ps = null;
//         try {
//             statement = connection.createStatement();
//             rs = statement.executeQuery("SELECT patch_name FROM " + manager.getTableName() + " WHERE patch_db_date IS NULL");
//             ps = connection.prepareStatement("UPDATE " + manager.getTableName() + " SET patch_db_date=? WHERE patch_name=?");
//             ps.setDate(1, new Date(0));
//             while (rs.next()) {
//                 ps.setString(2, rs.getString(1));
//                 ps.execute();
//                 log.info("Mark to skip " + rs.getString(1));
//             }
//             connection.commit();
//         } finally {
//             CloseUtil.close(statement);
//             CloseUtil.close(rs);
//             CloseUtil.close(ps);
//         }
//     }
// }
// 
// Path: dbpatch-core/src/main/java/org/jsoftware/dbpatch/config/EnvSettings.java
// public class EnvSettings {
//     private final String prefix;
// 
//     private EnvSettings(String prefix) {
//         this.prefix = prefix;
//     }
// 
//     public String getDbPatchFile() {
//         return prefix + "dbpatch.file";
//     }
// 
//     public String getDbPatchConfiguration() {
//         return prefix + "dbpatch.configuration";
//     }
// 
//     public String getDbPatchStop() {
//         return prefix + "dbpatch.stop";
//     }
// 
//     public String getDbPatchSingle() {
//         return prefix + "dbpatch.single";
//     }
// 
//     public String getLogLevel() {
//         return prefix + "dbpatch.logLevel";
//     }
// 
//     public static EnvSettings standalone() {
//         return new EnvSettings("");
//     }
// 
//     public static EnvSettings maven() {
//         return new EnvSettings("maven.");
//     }
// 
//     public static EnvSettings gradle() {
//         return new EnvSettings("gradle.");
//     }
// 
// }


import org.jsoftware.dbpatch.command.SkipErrorsCommand;
import org.jsoftware.dbpatch.config.EnvSettings;
package org.jsoftware.dbpatch.maven;



/**
 * Mark patches &quot;in progress&quot; as committed.
 *
 * @author szalik
 * @goal skip-errors
 */
public class SkipErrorsMojo extends CommandSingleConfMojoAdapter<SkipErrorsCommand> {

    protected SkipErrorsMojo() {
// Path: dbpatch-core/src/main/java/org/jsoftware/dbpatch/command/SkipErrorsCommand.java
// public class SkipErrorsCommand extends AbstractSingleConfDbPatchCommand {
// 
//     public SkipErrorsCommand(EnvSettings envSettings) {
//         super(envSettings);
//     }
// 
// 
//     protected void executeInternal() throws Exception {
//         Connection connection = manager.getConnection();
//         Statement statement = null;
//         ResultSet rs = null;
//         PreparedStatement ps = null;
//         try {
//             statement = connection.createStatement();
//             rs = statement.executeQuery("SELECT patch_name FROM " + manager.getTableName() + " WHERE patch_db_date IS NULL");
//             ps = connection.prepareStatement("UPDATE " + manager.getTableName() + " SET patch_db_date=? WHERE patch_name=?");
//             ps.setDate(1, new Date(0));
//             while (rs.next()) {
//                 ps.setString(2, rs.getString(1));
//                 ps.execute();
//                 log.info("Mark to skip " + rs.getString(1));
//             }
//             connection.commit();
//         } finally {
//             CloseUtil.close(statement);
//             CloseUtil.close(rs);
//             CloseUtil.close(ps);
//         }
//     }
// }
// 
// Path: dbpatch-core/src/main/java/org/jsoftware/dbpatch/config/EnvSettings.java
// public class EnvSettings {
//     private final String prefix;
// 
//     private EnvSettings(String prefix) {
//         this.prefix = prefix;
//     }
// 
//     public String getDbPatchFile() {
//         return prefix + "dbpatch.file";
//     }
// 
//     public String getDbPatchConfiguration() {
//         return prefix + "dbpatch.configuration";
//     }
// 
//     public String getDbPatchStop() {
//         return prefix + "dbpatch.stop";
//     }
// 
//     public String getDbPatchSingle() {
//         return prefix + "dbpatch.single";
//     }
// 
//     public String getLogLevel() {
//         return prefix + "dbpatch.logLevel";
//     }
// 
//     public static EnvSettings standalone() {
//         return new EnvSettings("");
//     }
// 
//     public static EnvSettings maven() {
//         return new EnvSettings("maven.");
//     }
// 
//     public static EnvSettings gradle() {
//         return new EnvSettings("gradle.");
//     }
// 
// }


// Path: dbpatch-maven-plugin/src/main/java/org/jsoftware/dbpatch/maven/SkipErrorsMojo.java
import org.jsoftware.dbpatch.command.SkipErrorsCommand;
import org.jsoftware.dbpatch.config.EnvSettings;

package org.jsoftware.dbpatch.maven;



/**
 * Mark patches &quot;in progress&quot; as committed.
 *
 * @author szalik
 * @goal skip-errors
 */
public class SkipErrorsMojo extends CommandSingleConfMojoAdapter<SkipErrorsCommand> {

    protected SkipErrorsMojo() {
        super(new SkipErrorsCommand(EnvSettings.maven()));