SirupDev
SirupDev
How to update it ?
some events to add: WeatherChangeEvent ThunderChangeEvent LightningStrikeEvent
it would be easier to pass the two executors in Database.Builder or smth. like: `Database.newBuilder().writeExecutor(Executor).readExecutor(Executor).build();`
```java public final Database { private final Database database; private final JdbcSqlExecutor writeExecutor; private final AtomicBoolean readOnly = new AtomicBoolean(false); public Database(Database.Builder builder, DataSource dataSource) { builder.defaultSqlExecutor(JdbcSqlExecutor.of(dataSource, Executors.newVirtualThreadPerTaskExecutor())); this.database =...
It seems like that I cant pass an SqlExecutor in Transactions methods like database.delete(Transaction,row). The default executor is the read executor service in my class, but i want use the...
All good! That would be great. I need this for a Minecraft network. The problem is: If I run a query in the main thread and it takes longer than...
Maybe it could be 3 interfaces: QueryOperations, UpdateOperations or smth similiar and then maybe ForwardingDatabase : QueryOps, UpdateOps
like I want to add a read-only mode, e.g., boolean readyOnly = false; if the boolean value is true, the insert/update queries won't be executed. however, I still need the...