first commit

This commit is contained in:
2026-01-15 22:38:46 +03:00
commit a70e9b7a79
58 changed files with 3980 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package com.andrewkydev.database.query;
import java.util.List;
import java.util.concurrent.CompletableFuture;
public interface QueryRunner {
int execute(String sql);
int execute(String sql, List<Object> params);
<T> List<T> query(String sql, RowMapper<T> mapper);
<T> List<T> query(String sql, List<Object> params, RowMapper<T> mapper);
CompletableFuture<Integer> executeAsync(String sql);
CompletableFuture<Integer> executeAsync(String sql, List<Object> params);
<T> CompletableFuture<List<T>> queryAsync(String sql, RowMapper<T> mapper);
<T> CompletableFuture<List<T>> queryAsync(String sql, List<Object> params, RowMapper<T> mapper);
}