class

Ralph::Cli::SchemaPuller

Inherits Reference / Object

Orchestrates pulling models from database schema

Constructors

new(db : Database::Backend, output_dir : String = "./src/models", tables : Array(String) | Nil = nil, skip_tables : Array(String) = [] of String, overwrite : Bool = false, output : IO = STDOUT)
Source

Instance methods

preview

Preview what would be generated (dry-run)

Source
run

Run the schema pull and generate model files

Source