public static StatementCustomizer statementTimeout(final int seconds) {
        return new StatementCustomizer() {
            @Override
            public void beforeExecution(final PreparedStatement stmt, final StatementContext ctx) throws SQLException {
                stmt.setQueryTimeout(seconds);
            }
        };
    }
Set a timeout on the statement.
@param seconds timeout in seconds
@return the customizer
core/src/main/java/org/jdbi/v3/core/statement/StatementCustomizers.java