Class QueryExecutor
java.lang.Object
com.github.darksoulq.abyssallib.common.database.relational.sql.QueryExecutor
A bridge class used to spawn table builders and queries.
This class simplifies access to table-specific operations using the provided connection and pool.
-
Constructor Summary
ConstructorsConstructorDescriptionQueryExecutor(Connection connection, ExecutorService asyncPool) Constructs a new QueryExecutor. -
Method Summary
Modifier and TypeMethodDescriptionStarts a fluent table builder to define a new schema.voidexecuteRaw(String sql) Executes a raw SQL string that does not require a result set.Starts a fluent query builder for a specific table.
-
Constructor Details
-
QueryExecutor
Constructs a new QueryExecutor.- Parameters:
connection- The JDBCConnection.asyncPool- TheExecutorService.
-
-
Method Details
-
table
Starts a fluent query builder for a specific table.- Parameters:
name- The name of the table to query.- Returns:
- A new
TableQueryinstance.
-
create
Starts a fluent table builder to define a new schema.- Parameters:
name- The name of the table to create.- Returns:
- A new
TableBuilderinstance.
-
executeRaw
-