3.0.31 • Published 2 years ago
@alphaapps/nestjs-db v3.0.31
Database Lib:
This module was first created to support sequelize ORM because it wasn't supported yet by NestJS but now we use @nestjs/sequelize package.
Right now the only usage of it is to configure sequelize in a standard way.
Installation:
npm install @alphaapps/nestjs-dbimport { databaseConfig } from '@alphaapps/nestjs-db';
@Module({
imports: [SequelizeModule.forRoot(databaseConfig)]
})
export default class AppModule {}This config by default uses the following env vars:
DB_URL: The whole database connection url and this has the highest priority.postgres://user:password@localhost/dbDB_HOST: The hostname where the database is hostedDB_PORT: The port of the databaseDB_USERNAME: The username of the databaseDB_PASS: The password of the databaseDB_DATABASE: The name of the database For each one of the previous vars if it wasn't supplied then we take the value from config. Also by default the logging is using thedebuglib with${packageName}:databaseprefix.
3.0.28
2 years ago
3.0.31
2 years ago
3.0.29
2 years ago
3.0.27
3 years ago
3.0.25
3 years ago
3.0.13
5 years ago
3.0.10
5 years ago
1.3.1
5 years ago
1.3.0
5 years ago
2.0.0
5 years ago
3.0.0
5 years ago
1.2.114
5 years ago
1.2.106
5 years ago
1.2.70
5 years ago
1.2.69
5 years ago
1.2.67
5 years ago
1.2.68
5 years ago
1.2.63
5 years ago
1.2.64
5 years ago
1.2.62-beta.3
5 years ago
1.2.62
5 years ago
1.2.62-beta.2
5 years ago
1.2.60
5 years ago
1.2.61
5 years ago
1.2.24
6 years ago
1.2.7
6 years ago
1.2.6
6 years ago
1.2.5
6 years ago
1.2.4
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.30
6 years ago
1.0.28
6 years ago
1.0.27
6 years ago
1.0.25
6 years ago
1.0.14
6 years ago
1.0.10
6 years ago
1.0.8
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.2
6 years ago
1.0.3
6 years ago
1.0.0
6 years ago
1.0.1
6 years ago