/** * NestMysql2ClientModule is a testing module that verifies that * NestMysql2Module was generated properly. * * You can quickly verify this by running `npm run start:dev`, and then * connecting to `http://localhost:3000` with your browser. It should return * a custom message like `Hello from NestMysql2Module`. * * Once you begin customizing NestMysql2Module, you'll probably want * to delete this module. */ import { Module } from '@nestjs/common'; import { NestKnexClientController } from './nest-knex-client.controller'; import { NestKnexModule } from '../nest-knex.module'; @Module({ controllers: [NestKnexClientController], imports: [ NestKnexModule.registerAsync({ useFactory: () => { return { client: 'mysql2', debug: false, connection: { database: 'rhbnb_api_db', host: '192.168.48.5', port: 3306, password: 'pass', user: 'root', }, }; }, }), ], }) export class NestKnexClientModule { }