class Jennifer::Generators::Field

Defined in:

azu_cli/templates/jennifer/generators/field.cr

Constant Summary

DATA_TYPES = {"bool" => "Bool", "bigint" => "Int64", "integer" => "Int32", "short" => "Int16", "tinyint" => "Int8", "float" => "Float32", "double" => "Double64", "decimal" => "Float64", "string" => "String", "text" => "String", "timestamp" => "Time", "date_time" => "Time", "json" => "JSON::Any", REFERENCE_TYPE => "Int32"}
REFERENCE_TYPE = "reference"

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, type : String, nilable : Bool) #

[View source]

Instance Method Detail

def ==(other) #
Description copied from class Reference

Returns false (other can only be a Value here).


[View source]
def cr_type #

[View source]
def decimal? #

[View source]
def field_name #

[View source]
def id? #

[View source]
def name : String #

[View source]
def nilable : Bool #

[View source]
def reference? #

[View source]
def reference_class #

[View source]
def timestamp? #

[View source]
def type : String #

[View source]