class AzuCLI::Commands::DB::Seed

Overview

Seed database with initial data

Defined in:

azu_cli/commands/db/seed.cr

Constructors

Instance Method Summary

Instance methods inherited from class AzuCLI::Commands::Database

adapter : String adapter, adapter=(adapter : String) adapter=, checkout_timeout : Int32 checkout_timeout, checkout_timeout=(checkout_timeout : Int32) checkout_timeout=, connection_healthy : Bool connection_healthy, connection_healthy=(connection_healthy : Bool) connection_healthy=, database_name : String | Nil database_name, database_name=(database_name : String | Nil) database_name=, database_url : String | Nil database_url, database_url=(database_url : String | Nil) database_url=, dump_schema dump_schema, environment : String environment, environment=(environment : String) environment=, host : String host, host=(host : String) host=, last_connection_check : Time | Nil last_connection_check, last_connection_check=(last_connection_check : Time | Nil) last_connection_check=, map_adapter_to_cql map_adapter_to_cql, password : String password, password=(password : String) password=, pool_size : Int32 pool_size, pool_size=(pool_size : Int32) pool_size=, pool_timeout : Int32 pool_timeout, pool_timeout=(pool_timeout : Int32) pool_timeout=, port : Int32 port, port=(port : Int32) port=, schema_file_path : String schema_file_path, test_detect_schema_info : Tuple(String, String) test_detect_schema_info, username : String username, username=(username : String) username=

Constructor methods inherited from class AzuCLI::Commands::Database

new(name : String = "", description : String = "") new

Instance methods inherited from class AzuCLI::Commands::Base

all_args : Array(String) all_args, all_args=(all_args : Array(String)) all_args=, args : Array(String) args, args=(args : Array(String)) args=, description : String description, description=(description : String) description=, error(message : String, category : String) : Result
error(message : String) : Result
error
, execute : Result execute, fatal_error(message : String, category : String = Config::ErrorCategory::UNKNOWN) : NoReturn fatal_error, filesystem_error(message : String, category : String = Config::ErrorCategory::IO_ERROR) : Result filesystem_error, get_arg(index : Int32) : String | Nil get_arg, get_args : Array(String) get_args, get_option(key : String, default : String = "") : String get_option, handle_error(message : String, category : String = Config::ErrorCategory::UNKNOWN, severity : Int32 = Config::ErrorSeverity::ERROR, exit_code : Int32 = Config::EXIT_FAILURE, should_exit : Bool = false) : Result handle_error, has_option?(key : String) : Bool has_option?, name : String name, name=(name : String) name=, options : Hash(String, String) options, options=(options : Hash(String, String)) options=, parse_args(args : Array(String)) parse_args, show_examples show_examples, show_help show_help, success(message : String = "") : Result success, validate_required_args(required_count : Int32) : Bool validate_required_args, validate_required_options(required_options : Array(String)) : Bool validate_required_options, validation_error(message : String) : Result validation_error, warning(message : String, category : String = Config::ErrorCategory::UNKNOWN) warning, with_error_handling(category : String = Config::ErrorCategory::RUNTIME_ERROR, &) with_error_handling

Constructor methods inherited from class AzuCLI::Commands::Base

new(name : String, description : String = "") new

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def execute : Result #
Description copied from class AzuCLI::Commands::Base

Abstract method that all commands must implement


[View source]
def file : String | Nil #

[View source]
def file=(file : String | Nil) #

[View source]
def force : Bool #

[View source]
def force=(force : Bool) #

[View source]
def list : Bool #

[View source]
def list=(list : Bool) #

[View source]
def only : String | Nil #

[View source]
def only=(only : String | Nil) #

[View source]
def parse_args(args : Array(String)) #

Override parse_args to also trigger custom parsing


[View source]
def status : Bool #

[View source]
def status=(status : Bool) #

[View source]
def verbose : Bool #

[View source]
def verbose=(verbose : Bool) #

[View source]