Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Pool constructor public and rename to clCommand #53

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/io/github/mapepire_ibmi/Pool.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class Pool {
*
* @param options The options for configuring the connection pool.
*/
Pool(PoolOptions options) {
public Pool(PoolOptions options) {
this.options = options;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/mapepire_ibmi/SqlJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ public CompletableFuture<SetConfigResult> setTraceConfig(ServerTraceDest dest, S
* @param cmd The CL command.
* @return A new Query instance for the command.
*/
public <T> Query<T> clcommand(String cmd) {
public <T> Query<T> clCommand(String cmd) {
QueryOptions options = new QueryOptions();
options.setIsClCommand(true);
return new Query(this, cmd, options);
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/io/github/mapepire_ibmi/CLTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void validCLCommand() throws Exception {
SqlJob job = new SqlJob();
job.connect(MapepireTest.getCreds()).get();

Query<Object> query = job.clcommand("WRKACTJOB");
Query<Object> query = job.clCommand("WRKACTJOB");
QueryResult<Object> result = query.execute().get();
job.close();

Expand All @@ -28,7 +28,7 @@ void invalidCLCommand() throws Exception {
SqlJob job = new SqlJob();
job.connect(MapepireTest.getCreds()).get();

Query<Object> query = job.clcommand("INVALIDCOMMAND");
Query<Object> query = job.clCommand("INVALIDCOMMAND");
QueryResult<Object> result = query.execute().get();
job.close();

Expand Down
Loading