@hotglue/gluestick-ts
Version:
TypeScript version of the gluestick ETL library for hotglue IPaaS platform
16 lines • 892 B
TypeScript
import pl from 'nodejs-polars';
import { SingerHeaderMap } from './singer.js';
export interface ExportOptions {
keys?: string[];
exportFormat?: 'csv' | 'json' | 'jsonl' | 'parquet' | 'singer';
outputFilePrefix?: string;
stringifyObjects?: boolean;
reservedVariables?: Record<string, string>;
allowObjects?: boolean;
schema?: SingerHeaderMap;
}
export declare function toExport(data: pl.DataFrame, name: string, outputDir: string, options?: ExportOptions): void;
export declare function buildStringFormatVariables(defaultKwargs?: Record<string, string>, useTenantMetadata?: boolean, subtenantDelimiter?: string): Record<string, string>;
export declare function formatStrSafely(strToFormat: string, formatVariables: Record<string, string>): string;
export declare function getIndexSafely<T>(arr: T[], index: number): T | null;
//# sourceMappingURL=etl-utils.d.ts.map