3.0.31 • Published 5 months ago

@alphaapps/nestjs-db v3.0.31

Weekly downloads
64
License
MIT
Repository
gitlab
Last release
5 months ago

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-db
import { 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/db
  • DB_HOST: The hostname where the database is hosted
  • DB_PORT: The port of the database
  • DB_USERNAME: The username of the database
  • DB_PASS: The password of the database
  • DB_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 the debug lib with ${packageName}:database prefix.
3.0.28

5 months ago

3.0.31

5 months ago

3.0.29

5 months ago

3.0.27

1 year ago

3.0.25

1 year ago

3.0.13

3 years ago

3.0.10

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

2.0.0

3 years ago

3.0.0

3 years ago

1.2.114

3 years ago

1.2.106

3 years ago

1.2.70

4 years ago

1.2.69

4 years ago

1.2.67

4 years ago

1.2.68

4 years ago

1.2.63

4 years ago

1.2.64

4 years ago

1.2.62-beta.3

4 years ago

1.2.62

4 years ago

1.2.62-beta.2

4 years ago

1.2.60

4 years ago

1.2.61

4 years ago

1.2.24

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.30

4 years ago

1.0.28

4 years ago

1.0.27

4 years ago

1.0.25

4 years ago

1.0.14

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago

1.0.1

4 years ago