class AzuCLI::Database

Included Modules

Defined in:

azu_cli/database.cr

Constant Summary

ARGS = "setup"
DESCRIPTION = "#{bold("Azu")} - Jennifer Database Commands\n\n Allows you to evolve your database schema and perform changes to \n your database \n\n seed - Seeds the database with data Eg. azu seed\n step - Migrates one step\n migrate - Runs all pending migrations\n rollback - Rolls back the last migration\n create - Creates the database\n drop - Drops the database\n version - Prints latest migrated version\n setup - Creates, migrates and seeds the database\n schema - Loads database schema definition into a sql file"
PATH = Migration::PATH

Instance Method Summary

Instance methods inherited from module AzuCLI::Command

project_name : String project_name, run run, show_usage show_usage, show_version show_version

Class methods inherited from module AzuCLI::Command

run(argv = ARGV) run

Instance Method Detail

def action : String #

def action=(v : String) : String #

def action=(v : Nil) #

nil assignments are always ignored


def action? : String | Nil #

def count : Int32 #

def count=(v : Int32) : Int32 #

def count=(v : Nil) #

nil assignments are always ignored


def count? : Int32 | Nil #

def help : Bool #

def help=(v : Bool) : Bool #

def help=(v : Nil) #

nil assignments are always ignored


def help? #

def not_exists?(path, &) #

[View source]
def on(event : String) #

[View source]
def register_option_action(parser) #

[View source]
def register_option_count(parser) #

[View source]
def register_option_help(parser) #

def register_option_version(parser) #

def run(input, args) #

[View source]
def run #
Description copied from module Opts

[app flow] step3 : main routine


[View source]
def shard(path = "./shard.yml") #

[View source]
def show_usage #

[View source]
def version : Bool #

def version=(v : Bool) : Bool #

def version=(v : Nil) #

nil assignments are always ignored


def version? #