@slickteam/nestjs-pg-typeorm
v1.0.1
Published
Module for Postgresql Typeorm with Nestjs
Downloads
57
Maintainers
Readme
Slick Nestjs Postresql Typeorm
Usage
- Install dependency
npm i -S @slickteam/nestjs-pg-typeorm
- In your environment file, add these lines :
POSTGRESQL_ADDON_HOST=localhost
POSTGRESQL_ADDON_PORT=5432
POSTGRESQL_ADDON_USER=user
POSTGRESQL_ADDON_PASSWORD=password
POSTGRESQL_ADDON_DB=db_name
# Optionnel
POSTGRESQL_SYNCHRONIZE=false
POSTGRESQL_LOGGER=
POSTGRESQL_ENTITY_PATH=dist/**/*.entity.js,dist/**/**/*.entity.js
POSTGRESQL_MIGRATION_PATH=dist/migration/*.js
- In module where you want use this module, add this :
@Module({
imports: [Warp10Module],
controllers: [],
providers: [],
exports: [],
})
class ExempleModule {}
Dependencies version
Nestjs
@nestjs/common
:^10.4.4
@nestjs/config
:^3.2.3
Pg
pg
:^8.13.0
Typeorm
@nestjs/typeorm
:^10.0.2
typeorm
:^0.3.20