Skip to content

Commit

Permalink
remove BatchBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Sep 9, 2024
1 parent 40315f8 commit 57c8292
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 98 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,4 @@ default Optional<StatementBuilder> createStatementBuilderSafe() {
return Optional.empty();
}
}

/**
* Create a new batch builder for this client
*
* @return the batch builder
*
* @throws SQLException if there is an SQL error
*/
default BatchBuilder createBatchBuilder() throws SQLException {
return new BatchBuilder(this.getConnection());
}

/**
* Create a new batch builder for this client but ignores exceptions
*
* @return the batch builder
*/
default Optional<BatchBuilder> createBatchBuilderSafe() {
try {
return Optional.of(this.createBatchBuilder());
} catch (Exception e) {
LoggerProvider.getLogger(this.getClass()).log(LogLevel.WARN, e);
return Optional.empty();
}
}
}

0 comments on commit 57c8292

Please sign in to comment.