import { createConnection } from 'typeorm'; export const databaseProviders = [ { provide: 'DATABASE_CONNECTION', // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types useFactory: () => createConnection({ type: 'mysql', host: '127.0.0.1', port: 3306, username: 'root', password: '123456', database: 'neko', entities: [__dirname + '/../**/*.entity{.ts,.js}'], synchronize: true, }), }, ];