Skip to content

Commit

Permalink
Remove main() function
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentfuture committed Dec 3, 2023
1 parent e5ccee4 commit cce4ccf
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.time.LocalDate;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashMap;
Expand Down Expand Up @@ -261,26 +260,4 @@ public boolean equals(Object obj) {
public String toString() {
return query;
}

/**
* A simple command-line tool for you to try it out. Pass command line args like:
*
* <pre>"select name from {tbl} where id = {id}" students 123</pre>
* @param args
*/
public static void main(String[] args) {
if (args.length < 1) {
System.out.println("'[parameterized query]' [args...]");
return;
}
try {
@SuppressWarnings("CompileTimeConstant")
TableResult result = of(args[0], Arrays.asList(args).subList(1, args.length).toArray(new Object[0]))
.run();
System.out.println(result);
} catch (Exception e) {
e.printStackTrace();
System.exit(1);
}
}
}

0 comments on commit cce4ccf

Please sign in to comment.