// Path: sane-dbc-core/src/main/java/com/novarto/sanedbc/core/ops/UpdateOp.java
// public class UpdateOp extends DB<Integer>
// {
//     private final String sql;
//     private final TryEffect1<PreparedStatement, SQLException> binder;
// 
//     public UpdateOp(String sql, TryEffect1<PreparedStatement, SQLException> binder)
//     {
//         this.sql = sql;
//         this.binder = binder;
//     }
// 
// 
//     @Override
//     public Integer run(Connection c) throws SQLException
//     {
//         try (PreparedStatement s = c.prepareStatement(sql))
//         {
//             binder.f(s);
//             return s.executeUpdate();
//         }
//     }
// }


import com.novarto.sanedbc.core.ops.UpdateOp;
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
import java.sql.Connection;
package com.novarto.sanedbc.examples.flyway;



/**
 * Simple migration that inserts a new row in FOO table
 *
 * @see JdbcMigration
 */
@SuppressWarnings("checkstyle:TypeName")
public class V1_2__AlterFoo implements JdbcMigration
{
    @Override
    public void migrate(Connection c) throws Exception
    {
// Path: sane-dbc-core/src/main/java/com/novarto/sanedbc/core/ops/UpdateOp.java
// public class UpdateOp extends DB<Integer>
// {
//     private final String sql;
//     private final TryEffect1<PreparedStatement, SQLException> binder;
// 
//     public UpdateOp(String sql, TryEffect1<PreparedStatement, SQLException> binder)
//     {
//         this.sql = sql;
//         this.binder = binder;
//     }
// 
// 
//     @Override
//     public Integer run(Connection c) throws SQLException
//     {
//         try (PreparedStatement s = c.prepareStatement(sql))
//         {
//             binder.f(s);
//             return s.executeUpdate();
//         }
//     }
// }


// Path: sane-dbc-examples/src/test/java/com/novarto/sanedbc/examples/flyway/V1_2__AlterFoo.java
import com.novarto.sanedbc.core.ops.UpdateOp;
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
import java.sql.Connection;

package com.novarto.sanedbc.examples.flyway;



/**
 * Simple migration that inserts a new row in FOO table
 *
 * @see JdbcMigration
 */
@SuppressWarnings("checkstyle:TypeName")
public class V1_2__AlterFoo implements JdbcMigration
{
    @Override
    public void migrate(Connection c) throws Exception
    {
        new UpdateOp("INSERT INTO FLYWAY.FOO (DESCRIPTION) VALUES (?)", ps -> ps.setString(1, "description 3")).run(c);