Skip to content

Commit

Permalink
chore: move get-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
nitzano committed Sep 22, 2023
1 parent a7ff70c commit 3f7ba97
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/api/anon-column.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {type Anonymizer} from '../anonymizers/types';
import {createAnonymizer} from '../anonymizers/utils/create-anonymizer';
import {getProcessor} from '../cli/commands/anon-col/helpers/get-processor';
import {type Processor} from '../processors/base-processor/processor';
import {getProcessor} from '../processors/get-processor';
import {createLogger} from '../services/loggers/debug-logger';
import {type Provider} from '../types/types';

Expand Down
2 changes: 1 addition & 1 deletion src/api/anon-db.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {getProcessor} from '../cli/commands/anon-col/helpers/get-processor';
import {type Config} from '../config/types';
import {type Processor} from '../processors/base-processor/processor';
import {getProcessor} from '../processors/get-processor';
import {getCollections} from '../processors/utils/get-collections';
import {createLogger} from '../services/loggers/debug-logger';

Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/anon-col/helpers/process-column.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ora from 'ora';
import {type Anonymizer} from '../../../../anonymizers/types';
import {type Processor} from '../../../../processors/base-processor/processor';
import {getProcessor} from './get-processor';
import {getProcessor} from '../../../../processors/get-processor';
import {isUserConfirmed} from './is-user-confirmed';

export async function processColumn(
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/anon-db/anon-db-action.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {type Command} from 'commander';
import {type Config} from '../../../config/types';
import {type Processor} from '../../../processors/base-processor/processor';
import {getProcessor} from '../../../processors/get-processor';
import {getCollections} from '../../../processors/utils/get-collections';
import {createLogger} from '../../../services/loggers/debug-logger';
import {getProcessor} from '../anon-col/helpers/get-processor';
import {processDb} from './process-db';
import {loadDbzarConfig} from './utils/load-dbzar-config';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {EngineType} from '../../../../config/types';
import {type Processor} from '../../../../processors/base-processor/processor';
import {MariaDbProcessor} from '../../../../processors/databases/mariadb/mariadb-processor';
import {MongoProcessor} from '../../../../processors/databases/mongo/mongo-processor';
import {PostgresProcessor} from '../../../../processors/databases/postgres/postgres/postgres-processor';
import {getConnectionStringEngine} from '../../../../utils/get-connection-string-engine';
import {EngineType} from '../config/types';
import {getConnectionStringEngine} from '../utils/get-connection-string-engine';
import {type Processor} from './base-processor/processor';
import {MariaDbProcessor} from './databases/mariadb/mariadb-processor';
import {MongoProcessor} from './databases/mongo/mongo-processor';
import {PostgresProcessor} from './databases/postgres/postgres/postgres-processor';

export function getProcessor(
connectionStringUri: string,
Expand Down

0 comments on commit 3f7ba97

Please sign in to comment.