How to use the @nestjs/azure-database.AzureTableStorageModule.forFeature function in @nestjs/azure-database

To help you get started, we’ve selected a few @nestjs/azure-database examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nitro-stack / nitro-cats / server / src / cat / cat.module.ts View on Github external
import { Module } from '@nestjs/common';
import { AzureStorageModule } from '@nestjs/azure-storage';
import { AzureTableStorageModule } from '@nestjs/azure-database';
import { CatController } from './cat.controller';
import { Cat } from './cat.entity';
import { CatService } from './cat.service';

@Module({
  imports: [
    AzureTableStorageModule.forFeature(Cat, {
      table: 'cats',
      createTableIfNotExists: true,
    }),
    AzureStorageModule.withConfig({
      sasKey: process.env.AZURE_STORAGE_SAS_KEY,
      accountName: process.env.AZURE_STORAGE_ACCOUNT,
      containerName: 'nitro-cats-container',
    }),
  ],
  providers: [CatService],
  controllers: [CatController],
})
export class CatModule {}

@nestjs/azure-database

The Azure Table Storage module for Nest framework (node.js)

MIT
Latest version published 6 months ago

Package Health Score

72 / 100
Full package analysis

Similar packages