From fefcabfd4dbb6b1f32949e1c81c1358d91c460b7 Mon Sep 17 00:00:00 2001 From: chulanovskyi Date: Thu, 5 Feb 2026 16:02:39 +0200 Subject: [PATCH] fix: imports --- forward_engineering/dbtProvider.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/forward_engineering/dbtProvider.js b/forward_engineering/dbtProvider.js index 0d9ce99..f66c6fb 100644 --- a/forward_engineering/dbtProvider.js +++ b/forward_engineering/dbtProvider.js @@ -8,8 +8,8 @@ const { toLower, toUpper } = require('lodash'); const types = require('./configs/types'); const defaultTypes = require('./configs/defaultTypes'); -const getKeyHelper = require('./helpers/keyHelper'); -const getColumnDefinitionHelper = require('./helpers/columnDefinitionHelper'); +const { getColumnConstraints, getCompositeKeyConstraints } = require('./helpers/keyHelper'); +const columnDefinitionHelper = require('./helpers/columnDefinitionHelper'); class DbtProvider { /** @@ -62,8 +62,6 @@ class DbtProvider { * @returns {string} */ decorateType({ type, columnDefinition }) { - const columnDefinitionHelper = getColumnDefinitionHelper(this.#appInstance); - return columnDefinitionHelper.decorateType(toUpper(type), columnDefinition); } @@ -72,9 +70,7 @@ class DbtProvider { * @returns {ConstraintDto[]} */ getCompositeKeyConstraints({ jsonSchema }) { - const keyHelper = getKeyHelper(this.#appInstance); - - return keyHelper.getCompositeKeyConstraints({ jsonSchema }); + return getCompositeKeyConstraints({ jsonSchema }); } /** @@ -82,9 +78,7 @@ class DbtProvider { * @returns {ConstraintDto[]} */ getColumnConstraints({ columnDefinition, jsonSchema }) { - const keyHelper = getKeyHelper(this.#appInstance); - - return keyHelper.getColumnConstraints({ columnDefinition }); + return getColumnConstraints({ columnDefinition }); } }