Implement Drizzle service and integration in the project. A new Drizzle module was added to the nest app. The Drizzle service also includes configuration for postgres database and management of migration client. An adjustment was also made to tsconfig.json to enable ES module interoperation.
11 lines
270 B
TypeScript
11 lines
270 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { DrizzleService } from './drizzle.service';
|
|
import { ConfigModule } from "@nestjs/config";
|
|
|
|
@Module({
|
|
imports: [ConfigModule],
|
|
providers: [DrizzleService],
|
|
exports: [DrizzleService]
|
|
})
|
|
export class DrizzleModule {}
|