class CharacterQuery
- CharacterQuery
- Character::BaseQuery
- Reference
- Object
Defined in:
queries/character_query.crInstance Method Summary
-
#accessible_by(user : User)
Accessible characters are characters that are public, or unlisted but the user knows about their slug, or private that the user has created themselves.
- #avatar_id
- #created_at
- #creator_id
- #description
- #example_chats
- #greeting
- #id
- #is_contentious
- #name
- #persona
- #slug
- #updated_at
- #visibility
-
#visible_to(user : User)
Visible characters are characters that are public, or that the user has created.
- #world_scenario
Instance methods inherited from class Character::BaseQuery
avatar_id(value)avatar_id avatar_id, clone clone, created_at(value)
created_at created_at, creator_id(value)
creator_id creator_id, description(value)
description description, example_chats(value)
example_chats example_chats, find(id) find, full_join_chat_participations full_join_chat_participations, full_join_chats full_join_chats, full_join_creator full_join_creator, greeting(value)
greeting greeting, id(value)
id id, inner_join_chat_participations inner_join_chat_participations, inner_join_chats inner_join_chats, inner_join_creator inner_join_creator, is_contentious(value)
is_contentious is_contentious, join_chat_participations join_chat_participations, join_chats join_chats, join_creator join_creator, left_join_chat_participations left_join_chat_participations, left_join_chats left_join_chats, left_join_creator left_join_creator, name(value)
name name, persona(value)
persona persona, preload_chat_participations(preload_query : ChatParticipant::BaseQuery)
preload_chat_participations
preload_chat_participations(&) preload_chat_participations, preload_chats(preload_query : Chat::BaseQuery)
preload_chats
preload_chats(&) preload_chats, preload_creator(preload_query : User::BaseQuery)
preload_creator
preload_creator(&) preload_creator, right_join_chat_participations right_join_chat_participations, right_join_chats right_join_chats, right_join_creator right_join_creator, slug(value)
slug slug, update(id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | Avram::Nothing = Avram::Nothing.new) : Int64 update, updated_at(value)
updated_at updated_at, visibility(value)
visibility visibility, where_chat_participations(assoc_query : ChatParticipant::BaseQuery, auto_inner_join : Bool = true) where_chat_participations, where_chats(assoc_query : Chat::BaseQuery, auto_inner_join : Bool = true) where_chats, where_creator(assoc_query : User::BaseQuery, auto_inner_join : Bool = true) where_creator, world_scenario(value)
world_scenario world_scenario
Constructor methods inherited from class Character::BaseQuery
all : self
all
Class methods inherited from class Character::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?,
preload_chat_participations(records : Enumerable, preload_query)preload_chat_participations(record, preload_query)
preload_chat_participations(records : Enumerable)
preload_chat_participations(record)
preload_chat_participations(records : Enumerable, &)
preload_chat_participations(record, &) preload_chat_participations, preload_chats(records : Enumerable, preload_query)
preload_chats(record, preload_query)
preload_chats(records : Enumerable)
preload_chats(record)
preload_chats(records : Enumerable, &)
preload_chats(record, &) preload_chats, preload_creator(records : Enumerable, preload_query)
preload_creator(record, preload_query)
preload_creator(records : Enumerable)
preload_creator(record)
preload_creator(records : Enumerable, &)
preload_creator(record, &) preload_creator, truncate(*, cascade : Bool = false) truncate
Instance Method Detail
Accessible characters are characters that are public, or unlisted but the user knows about their slug, or private that the user has created themselves.
Visible characters are characters that are public, or that the user has created.