class

AzuCLI::Commands::DB::SeedRunner

Inherits AzuCLI::Commands::Database < AzuCLI::Commands::Base < Reference < Object

Manages seed file execution with dependency tracking

Constructors

new(environment : String = "development", seeds_dir : String = "./src/db/seeds")
Source

Instance methods

environment
Source
environment=(environment : String)
Source
execute

Abstract method that all commands must implement

Source
executed_seeds
Source
executed_seeds=(executed_seeds : Array(String))
Source
find_seed_files

Find seed files for the current environment

Source
force_run_seed(file : String) : Bool

Force re-run a specific seed

Source
get_seed_status

Get seed status

Source
list_seeds

List available seeds

Source
run_seed_file(file : String) : Bool

Run a specific seed file

Source
run_seeds(files : Array(String) | Nil = nil) : Bool

Run seeds for the specified environment

Source
seeds_dir
Source
seeds_dir=(seeds_dir : String)
Source