class PessoaQuery
- PessoaQuery
- Pessoa::BaseQuery
- Reference
- Object
Defined in:
queries/pessoa_query.crClass Method Summary
- .count
-
.find_first?(id)
doing direct sql query just to avoid UUID.new(person_id) and then back to string for the query
- .search(term)
Instance Method Summary
Instance methods inherited from class Pessoa::BaseQuery
apelido(value)apelido apelido, clone clone, find(id) find, id(value)
id id, nascimento(value)
nascimento nascimento, nome(value)
nome nome, stack(value)
stack stack, update(id : UUID | Avram::Nothing = Avram::Nothing.new, apelido : String | Avram::Nothing = Avram::Nothing.new, nome : String | Avram::Nothing = Avram::Nothing.new, nascimento : Time | Avram::Nothing | Nil = Avram::Nothing.new, stack : String | Avram::Nothing | Nil = Avram::Nothing.new) : Int64 update
Constructor methods inherited from class Pessoa::BaseQuery
all : self
all
Class methods inherited from class Pessoa::BaseQuery
any? : Bool
any?,
find(id)
find,
first : T
first,
first? : T | Nil
first?,
last : T
last,
last? : T | Nil
last?,
new_with_existing_query(query : Avram::QueryBuilder)
new_with_existing_query,
none? : Bool
none?,
truncate(*, cascade : Bool = false)
truncate
Class Method Detail
def self.find_first?(id)
#
doing direct sql query just to avoid UUID.new(person_id) and then back to string for the query