add simple getTable

This commit is contained in:
Jörg Prante 2023-08-03 17:07:12 +02:00
parent ad589e0d12
commit 95543ec9c6
2 changed files with 7 additions and 0 deletions

View file

@ -213,6 +213,8 @@ public interface Database extends Supplier<Database> {
long countRows(String statement, Map<String, Object> params);
Table getTable(String statement, Map<String, Object> params);
Table getSingleRow(String statement, Map<String, Object> params);
Table getTable(String statement,

View file

@ -324,6 +324,11 @@ public class DatabaseImpl implements Database {
return getTable(statement, params, 1, options().fetchSize(), options().timeoutSeconds());
}
@Override
public Table getTable(String statement, Map<String, Object> params) {
return getTable(statement, params, 0, options().fetchSize(), options().timeoutSeconds());
}
@Override
public Table getTable(String statement, Map<String, Object> params,
int limit, int fetchSize, int timeoutSeconds) {