UNPKG

adonis-odm

Version:

A comprehensive MongoDB ODM for AdonisJS with Lucid-style API, type-safe relationships, embedded documents, and transaction support

49 lines 1.23 kB
import { BaseCommand } from '@adonisjs/core/ace'; import { CommandOptions } from '@adonisjs/core/types/ace'; /** * Command to generate ODM seeder files * * This command creates new seeder files using predefined templates. * It supports multiple stub templates and subdirectory organization. * * @example * ```bash * # Generate a basic seeder * node ace make:odm-seeder User * * # Generate with simple template * node ace make:odm-seeder User --stub=simple * * # Generate with advanced template * node ace make:odm-seeder User --stub=advanced * * # Generate in subdirectory * node ace make:odm-seeder admin/User * ``` */ export default class MakeOdmSeeder extends BaseCommand { static commandName: string; static description: string; static options: CommandOptions; /** * The name of the seeder */ name: string; /** * Stub template to use for generation */ stub: string; /** * Execute the command */ run(): Promise<void>; /** * Get the expected output path for the seeder file */ private getOutputPath; /** * Display help information */ static help: string; } //# sourceMappingURL=make_odm_seeder.d.ts.map