def self.primary_key_name : Symbol | Nil
#
class Taxon
Included Modules
- Avram::PrimaryKeyMethods
- DB::Mappable
- DB::Serializable
- LuckyCache::Cachable
Defined in:
models/taxon.crConstant Summary
-
ASSOCIATIONS =
[] of Nil
-
COLUMNS =
[{name: id, type: UUID, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: kingdom, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: phylum, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: class_name, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: order, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: suborder, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: family, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: subfamily, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: tribe, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: subtribe, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: genus, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: subgenus, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: species, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: subspecies, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: scientific_name_author, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: name_publishedin_year, type: Int32, nilable: false, autogenerated: false, value: 0, serialized: false, allow_blank: true}, {name: change_genus_brackets, type: Bool, nilable: false, autogenerated: false, value: false, serialized: false, allow_blank: false}, {name: unknown_author_brackets, type: Bool, nilable: false, autogenerated: false, value: false, serialized: false, allow_blank: false}, {name: unknown_name_publishedin_year_brackets, type: Bool, nilable: false, autogenerated: false, value: false, serialized: false, allow_blank: false}, {name: actual_dist_year, type: Int32, nilable: false, autogenerated: false, value: 0, serialized: false, allow_blank: false}, {name: japanese_name, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: distribution, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: note, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: image1, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image2, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image3, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image4, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image5, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}] of Nil
-
PRIMARY_KEY_NAME =
:id
-
PRIMARY_KEY_TYPE =
UUID
Constructors
- .new(id : UUID, created_at : Time, kingdom : String, phylum : String, class_name : String, order : String, suborder : String, family : String, subfamily : String, tribe : String, subtribe : String, genus : String, subgenus : String, species : String, subspecies : String, scientific_name_author : String, name_publishedin_year : Int32, change_genus_brackets : Bool, unknown_author_brackets : Bool, unknown_name_publishedin_year_brackets : Bool, actual_dist_year : Int32, japanese_name : String, distribution : String, note : String, image1 : Nil | String, image2 : Nil | String, image3 : Nil | String, image4 : Nil | String, image5 : Nil | String)
- .new(rs : DB::ResultSet)
Class Method Summary
- .column_names : Array(Symbol)
- .columns : Array(NamedTuple(name: Symbol, nilable: Bool, type: String))
- .ensure_correct_column_mappings!
- .from_rs(rs : DB::ResultSet)
- .primary_key_name : Symbol | Nil
- .schema_enforcer_validations
- .table_name : String
Macro Summary
Instance Method Summary
- #actual_dist_year : Int32
-
#base_query_class : ::Taxon::BaseQuery.class
This makes it easy for plugins and extensions to use the base SaveOperation
- #change_genus_brackets : Bool
- #change_genus_brackets? : Bool
- #class_name : String
- #created_at : Time
- #delete_operation_class : ::Taxon::DeleteOperation.class
- #distribution : String
- #family : String
- #genus : String
- #id : UUID
- #image1 : String | Nil
- #image2 : String | Nil
- #image3 : String | Nil
- #image4 : String | Nil
- #image5 : String | Nil
- #japanese_name : String
- #kingdom : String
- #name_publishedin_year : Int32
- #note : String
- #order : String
- #phylum : String
- #save_operation_class : ::Taxon::SaveOperation.class
- #scientific_name_author : String
- #species : String
- #subfamily : String
- #subgenus : String
- #suborder : String
- #subspecies : String
- #subtribe : String
- #tribe : String
- #unknown_author_brackets : Bool
- #unknown_author_brackets? : Bool
- #unknown_name_publishedin_year_brackets : Bool
- #unknown_name_publishedin_year_brackets? : Bool
Constructor methods inherited from class BaseModel
new(rs : DB::ResultSet)
new
Class methods inherited from class BaseModel
database : Avram::Database.class
database,
from_rs(rs : DB::ResultSet)
from_rs
Macros inherited from class BaseModel
default_columns
default_columns
Constructor Detail
def self.new(id : UUID, created_at : Time, kingdom : String, phylum : String, class_name : String, order : String, suborder : String, family : String, subfamily : String, tribe : String, subtribe : String, genus : String, subgenus : String, species : String, subspecies : String, scientific_name_author : String, name_publishedin_year : Int32, change_genus_brackets : Bool, unknown_author_brackets : Bool, unknown_name_publishedin_year_brackets : Bool, actual_dist_year : Int32, japanese_name : String, distribution : String, note : String, image1 : Nil | String, image2 : Nil | String, image3 : Nil | String, image4 : Nil | String, image5 : Nil | String)
#
Class Method Detail
Macro Detail
Instance Method Detail
This makes it easy for plugins and extensions to use the base SaveOperation