nestjs-reverse-engineering
Version:
A powerful TypeScript/NestJS library for database reverse engineering, entity generation, and CRUD operations
13 lines • 616 B
TypeScript
import { DatabaseDialect, TypeMapping } from '../types/database.types';
export declare class TypeMapper {
private static readonly postgresTypeMap;
private static readonly mysqlTypeMap;
private static readonly mssqlTypeMap;
static mapType(dataType: string, dialect: DatabaseDialect, isNullable?: boolean): TypeMapping;
static getImports(typeMappings: TypeMapping[]): string[];
/**
* Convert TypeORM column types to SQL DDL types for CREATE TABLE statements
*/
static mapToSqlType(typeormType: string, dialect: DatabaseDialect): string;
}
//# sourceMappingURL=type-mapper.d.ts.map