io.quarkus.datasource.runtime.devui.DatasourceJsonRpcService Maven / Gradle / Ivy
package io.quarkus.datasource.runtime.devui;
import java.util.ServiceLoader;
import jakarta.enterprise.context.ApplicationScoped;
import io.quarkus.datasource.runtime.DatabaseSchemaProvider;
@ApplicationScoped
public class DatasourceJsonRpcService {
public boolean reset(String ds) {
ServiceLoader dbs = ServiceLoader.load(DatabaseSchemaProvider.class,
Thread.currentThread().getContextClassLoader());
for (DatabaseSchemaProvider i : dbs) {
i.resetDatabase(ds);
}
return true;
}
}