class AmberCLI::Commands::DatabaseCommand

Defined in:

amber_cli/commands/database.cr

Constant Summary

CREATE_SQLITE_MESSAGE = "For sqlite3, the database will be created during the first migration."
Log = ::Log.for("database")
MIGRATIONS_DIR = "./db/migrations"

Class Method Summary

Instance Method Summary

Instance methods inherited from class AmberCLI::Core::BaseCommand

execute execute, help_description : String help_description, option_parser : OptionParser option_parser, parse_and_execute(args : Array(String)) parse_and_execute, parsed_options : Hash(String, String | Bool | Array(String)) parsed_options, remaining_arguments : Array(String) remaining_arguments, setup_command_options setup_command_options

Constructor methods inherited from class AmberCLI::Core::BaseCommand

new(command_name : String) new

Class Method Detail

def self.connection_url_for_migrations(url : String) : String #

The crystal-pg 0.29 driver this CLI links takes the socket file as host, while a generated application's database URL names the socket directory, as libpq does.


[View source]

Instance Method Detail

def execute #

[View source]
def help_description : String #

[View source]
def setup_command_options #

[View source]
def validate_arguments #

[View source]