File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,13 +5,6 @@ import getConfig from "../../utils/config.js";
55import path from "path" ;
66import { removeFile , writeFile } from "../../utils/fs.js" ;
77
8- export interface DbTransformation {
9- getSourceTable : ( ) => string ;
10- getSourceColumns : ( ) => string [ ] ;
11- transform : ( data : object ) => object ;
12- getDestinationTable : ( ) => string ;
13- }
14-
158export interface DuckDBConnection extends Connection { }
169
1710export default class TransformDb extends DbBaseCommand < typeof DbBaseCommand > {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
1414 DEFAULT_TABLES_DIR ,
1515} from "./constants.js" ;
1616import { fileURLToPath } from "url" ;
17- import { DbTransformation } from "../commands/db/transform .js" ;
17+ import { DbTransformation } from "./types .js" ;
1818
1919const __dirname = dirname ( fileURLToPath ( import . meta. url ) ) ;
2020const { PATH_TO_ENV , PDPL_PATH_TO_ENV } = process . env ;
Original file line number Diff line number Diff line change @@ -100,3 +100,10 @@ export interface OutputStrategy {
100100 isReady : ( fields : KeyVal , data ?: KeyVal ) => string [ ] ;
101101 handle : OutputStrategyHandler ;
102102}
103+
104+ export interface DbTransformation {
105+ getSourceTable : ( ) => string ;
106+ getSourceColumns : ( ) => string [ ] ;
107+ transform : ( data : object ) => object ;
108+ getDestinationTable : ( ) => string ;
109+ }
You can’t perform that action at this time.
0 commit comments