@surv-co/prisma-typeorm-db-utils
Version:
Transform Prisma schemas to TypeORM entities with NestJS integration and fast pg-mem testing
25 lines • 2.05 kB
JavaScript
// =============================================================================
// PRISMA TYPEORM TRANSFORMER - Main Library Exports
// =============================================================================
// -----------------------------------------------------------------------------
// PRIMARY API - Most users will need these
// -----------------------------------------------------------------------------
// Main transformer - Converts Prisma schema directly to TypeORM entities
export { createPrismaToEntitiesGenerator } from './features/prisma-to-entities/prisma-to-entities';
// Integration feature - Prisma schema to complete TypeORM datasource
export { createPrismaToPgMemTypeormDatasourceGenerator } from './features/prisma-to-pgmem-typeorm-datasource/prisma-to-pgmem-typeorm-datasource';
// NestJS integration modules
export { REPOSITORY_OPERATIONS, RepositoryModule } from './features/repository/repository.module';
export { TypeORMPgMemModule } from './features/typeorm-pgmem-datasource/typeorm-pgmem.module';
export { TypeORMPostgresModule } from './features/typeorm-postgres-datasource/typeorm-postgres.module';
// Testing utilities
export { createTestTypeORMClient } from './features/typeorm-pgmem-datasource/typeorm-client-pgmem';
export { createPostgresTypeORMClient } from './features/typeorm-postgres-datasource/typeorm-client-postgres';
// -----------------------------------------------------------------------------
// ADVANCED API - For users who need individual transformers
// -----------------------------------------------------------------------------
export { createPgMemDatabaseGenerator } from './features/pg-mem-database-generator/pg-mem-database-generator';
export { createPrismaSchemaTransformer } from './features/prisma-schema-transformer/prisma-schema-transformer';
export { createTypeORMRepositoryFactory } from './features/repository/implementation';
export { createTypeORMEntityTransformer } from './features/typeorm-entity-transformer/typeorm-entity-transformer';
//# sourceMappingURL=index.js.map