Trying to use Datasource, since CreateConnection has been deprecated. I'm willing to create and connect to a local sqlite database. But it seems that my nestjs wont connect to it, even though I can create and run migrations correctly
Here you can check my ormconfig.ts:
export const AppDataSource = new DataSource({
type: 'sqlite',
database: "./src/database/database.sqlite",
entities: ['./src/shared/models/*.ts'],
migrations: ["./src/migrations/**.ts"],
logging: false,
synchronize: false,
subscribers: [],
});```
What Am I missing?