def self.primary_key_name : Symbol | Nil
#
class Pessoa
Included Modules
- Avram::PrimaryKeyMethods
- DB::Mappable
- LuckyCache::Cachable
Defined in:
models/pessoa.crConstant Summary
-
ASSOCIATIONS =
[] of Nil
-
COLUMNS =
[{name: id, type: UUID, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: apelido, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: nome, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: nascimento, type: Time, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: stack, type: String, nilable: true, autogenerated: false, value: nil, serialized: false}] of Nil
-
PRIMARY_KEY_NAME =
:id
-
PRIMARY_KEY_TYPE =
UUID
Constructors
- .new(id : UUID, apelido : String, nome : String, nascimento : Time | Nil, stack : Nil | String)
- .new(__temp_99 : DB::ResultSet)
Class Method Summary
- .column_names : Array(Symbol)
- .columns : Array(NamedTuple(name: Symbol, nilable: Bool, type: String))
- .ensure_correct_column_mappings!
- .from_params(params)
- .from_rs(__temp_99 : DB::ResultSet)
- .primary_key_name : Symbol | Nil
- .schema_enforcer_validations
- .table_name : String
Instance Method Summary
- #apelido : String
- #apelido=(_apelido : String::Lucky::ColumnType)
-
#base_query_class : ::Pessoa::BaseQuery.class
This makes it easy for plugins and extensions to use the base SaveOperation
- #delete_operation_class : ::Pessoa::DeleteOperation.class
- #id : UUID
- #id=(_id : UUID::Lucky::ColumnType)
- #nascimento : Time | Nil
- #nascimento=(_nascimento : Time::Lucky::ColumnType | Nil)
- #nascimento_as_string
- #nascimento_as_string=(value : String | Nil)
- #nome : String
- #nome=(_nome : String::Lucky::ColumnType)
- #save_operation_class : ::Pessoa::SaveOperation.class
- #stack : String | Nil
- #stack=(_stack : String::Lucky::ColumnType | Nil)
- #stack_as_array : Array(String)
- #to_tuple : PessoaTuple
Class methods inherited from class BaseModel
database : Avram::Database.class
database
Constructor Detail
def self.new(id : UUID, apelido : String, nome : String, nascimento : Time | Nil, stack : Nil | String)
#
Class Method Detail
Instance Method Detail
This makes it easy for plugins and extensions to use the base SaveOperation