class
AmberCLI::Commands::DatabaseCommand
- AmberCLI::Commands::DatabaseCommand
- AmberCLI::Core::BaseCommand
- Reference
- Object
Defined in:
amber_cli/commands/database.crConstant 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
-
.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.
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.