add simple getTable
This commit is contained in:
parent
ad589e0d12
commit
95543ec9c6
2 changed files with 7 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue