From e373504b984609cb0699cab1fb9d2a5f9c835d77 Mon Sep 17 00:00:00 2001 From: Gavin Ray Date: Tue, 3 Dec 2024 17:04:09 -0500 Subject: [PATCH] Update ConnectorConfig loader --- .../io/hasura/phoenix/NoRelationshipsQueryGenerator.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ndc-connector-phoenix/src/main/kotlin/io/hasura/phoenix/NoRelationshipsQueryGenerator.kt b/ndc-connector-phoenix/src/main/kotlin/io/hasura/phoenix/NoRelationshipsQueryGenerator.kt index 4368bed..8e6d543 100644 --- a/ndc-connector-phoenix/src/main/kotlin/io/hasura/phoenix/NoRelationshipsQueryGenerator.kt +++ b/ndc-connector-phoenix/src/main/kotlin/io/hasura/phoenix/NoRelationshipsQueryGenerator.kt @@ -1,6 +1,7 @@ package io.hasura.phoenix -import io.hasura.ndc.app.services.ConnectorConfigurationLoader + +import io.hasura.ndc.common.ConnectorConfiguration import io.hasura.ndc.common.NDCScalar import io.hasura.ndc.ir.* import io.hasura.ndc.ir.Field.ColumnField @@ -131,7 +132,7 @@ object NoRelationshipsQueryGenerator : BaseQueryGenerator() { } fun columnTypeTojOOQType(collection: String, field: ColumnField): DataType { - val connectorConfig = ConnectorConfigurationLoader.config + val connectorConfig = ConnectorConfiguration.Loader.config val table = connectorConfig.tables.find { it.tableName == collection } ?: error("Table $collection not found in connector configuration")