Skip to content

Commit

Permalink
Remove starting H2 server as REPL does not use it anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbey authored Oct 28, 2024
1 parent 0c01cf7 commit 8142a67
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import org.eclipse.collections.api.list.MutableList;
import org.eclipse.collections.impl.factory.Lists;
import org.finos.legend.engine.plan.execution.result.Result;
import org.finos.legend.engine.plan.execution.stores.relational.AlloyH2Server;
import org.finos.legend.engine.plan.execution.stores.relational.result.RealizedRelationalResult;
import org.finos.legend.engine.plan.execution.stores.relational.result.RelationalResult;
import org.finos.legend.engine.repl.client.Client;
Expand All @@ -30,27 +29,11 @@
import org.finos.legend.engine.repl.relational.local.LocalConnectionManagement;
import org.finos.legend.engine.repl.relational.local.LocalConnectionType;

import java.sql.SQLException;

import static org.finos.legend.engine.plan.execution.stores.relational.result.RelationalResultGridPrintUtility.prettyGridPrint;

public class RelationalReplExtension implements ReplExtension
{
public static String DUCKDB_LOCAL_CONNECTION_BASE_NAME = "DuckDuck";

static
{
try
{
int port = AlloyH2Server.startServer(0).getPort();
System.setProperty("legend.test.h2.port", String.valueOf(port));
}
catch (SQLException e)
{
throw new RuntimeException(e);
}
}

private Client client;
private int maxRowSize = 40;
private LocalConnectionManagement localConnectionManagement;
Expand All @@ -66,7 +49,6 @@ public void initialize(Client client)
{
this.client = client;
this.localConnectionManagement = new LocalConnectionManagement(client);
// this.localConnectionManagement.addLocalConnection(LocalConnectionType.H2, "MyTestH2");
this.localConnectionManagement.addLocalConnection(LocalConnectionType.DuckDB, DUCKDB_LOCAL_CONNECTION_BASE_NAME);
}

Expand Down

0 comments on commit 8142a67

Please sign in to comment.