class BitQuery

Defined in:

queries/bit_query.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from class Bit::BaseQuery

clone clone, created_at(value)
created_at
created_at
, description(value)
description
description
, find(id) find, full_join_group full_join_group, full_join_user full_join_user, group(&) group, group_id(value)
group_id
group_id
, id(value)
id
id
, inner_join_group inner_join_group, inner_join_user inner_join_user, join_group join_group, join_user join_user, left_join_group left_join_group, left_join_user left_join_user, preload_group(preload_query : Group::BaseQuery)
preload_group
preload_group(&)
preload_group
, preload_user(preload_query : User::BaseQuery)
preload_user
preload_user(&)
preload_user
, right_join_group right_join_group, right_join_user right_join_user, title(value)
title
title
, update(id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, title : String | Avram::Nothing = Avram::Nothing.new, url : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing | Nil = Avram::Nothing.new, user_id : User::PrimaryKeyType | Avram::Nothing = Avram::Nothing.new, group_id : Group::PrimaryKeyType | Avram::Nothing = Avram::Nothing.new) : Int64 update, updated_at(value)
updated_at
updated_at
, url(value)
url
url
, user(&) user, user_id(value)
user_id
user_id
, where_group(assoc_query : Group::BaseQuery, auto_inner_join : Bool = true) where_group, where_user(assoc_query : User::BaseQuery, auto_inner_join : Bool = true) where_user

Constructor methods inherited from class Bit::BaseQuery

all : self all

Class methods inherited from class Bit::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_group(records : Enumerable, preload_query)
preload_group(record, preload_query)
preload_group(records : Enumerable)
preload_group(record)
preload_group(records : Enumerable, &)
preload_group(record, &)
preload_group
, preload_user(records : Enumerable, preload_query)
preload_user(record, preload_query)
preload_user(records : Enumerable)
preload_user(record)
preload_user(records : Enumerable, &)
preload_user(record, &)
preload_user
, truncate(*, cascade : Bool = false) truncate

Class Method Detail

def self.for(user : User) #

[View source]
def self.from(user : User) #

[View source]
def self.from_group(group : Group, without_bits_from : UserLike = NullUser.new) #

[View source]
def self.newest_first #

[View source]

Instance Method Detail

def created_at #

def description #

def for(user : User) #

[View source]
def from(user : User) #

[View source]
def from_group(group : Group, without_bits_from user : UserLike = NullUser.new) #

[View source]
def group_id #

def id #

def newest_first #

[View source]
def title #

def updated_at #

def url #

def user_id #