@sftech/nestjs-db
TypeScript icon, indicating that this package has built-in type declarations

0.0.20 • Public • Published

nestjs-db

This library provides basic database functionality for the @sftech/nestjs-core library. It is a wrapper around the TypeORM library and provides a simple way to connect to different databases. This library actually supports MySQL and SQLite. It also provides a RESTApi for CRUD-Operations towards the registered entities/models.

Installation

npm install @sftech/nestjs-core @sftech/nestjs-db

Usage

To use the library in your nestjs application, you need to import the NestJsDbModule in your app.module.ts:

import { NestjsDbModule, DatabaseOptionsMapper } from '@sftech/nestjs-db';

@Module({
	imports: [NestJsCoreModule.register(), NestjsDbModule.register(DatabaseOptionsMapper.map())],
	providers: [],
	...
})
export class AppModule {
}

Readme

Keywords

none

Package Sidebar

Install

npm i @sftech/nestjs-db

Weekly Downloads

29

Version

0.0.20

License

none

Unpacked Size

122 kB

Total Files

188

Last publish

Collaborators

  • rs88
  • afaercher