Skip to content

Commit

Permalink
Create default trino connection by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Arreola committed Jun 14, 2024
1 parent da5eea3 commit 3fd682e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/server/connections/node/connection_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,15 @@ export class NodeConnectionFactory implements ConnectionFactory {

if (!configs.find(config => config.backend === ConnectionBackend.Trino)) {
try {
const trinoOptions = TrinoExecutor.getConnectionOptionsFromEnv();
if (trinoOptions !== null) {
// TODO(figutierrez): add default.
configs.push({
name: 'trino',
backend: ConnectionBackend.Trino,
id: 'trino-default',
});
}
/*const trinoOptions = TrinoExecutor.getConnectionOptionsFromEnv();
if (trinoOptions !== null) {*/
// TODO(figutierrez): add default.
configs.push({
name: 'trino',
backend: ConnectionBackend.Trino,
id: 'trino-default',
});
//}
} catch (error) {
console.info(
`Could not get connection options for Trino connection. ${error}`
Expand Down

0 comments on commit 3fd682e

Please sign in to comment.