class GoodQuery
- GoodQuery
- Good::BaseQuery
- Reference
- Object
Defined in:
queries/good_query.crInstance Method Summary
Instance methods inherited from class Good::BaseQuery
categories(&)
categories,
clone
clone,
created_at(value)created_at created_at, description(value)
description description, find(id) find, full_join_categories full_join_categories, full_join_goods_categories full_join_goods_categories, full_join_goods_in_stores full_join_goods_in_stores, full_join_order_items full_join_order_items, full_join_stores full_join_stores, full_join_unit full_join_unit, goods_categories(&) goods_categories, goods_in_stores(&) goods_in_stores, id(value)
id id, inner_join_categories inner_join_categories, inner_join_goods_categories inner_join_goods_categories, inner_join_goods_in_stores inner_join_goods_in_stores, inner_join_order_items inner_join_order_items, inner_join_stores inner_join_stores, inner_join_unit inner_join_unit, join_categories join_categories, join_goods_categories join_goods_categories, join_goods_in_stores join_goods_in_stores, join_order_items join_order_items, join_stores join_stores, join_unit join_unit, left_join_categories left_join_categories, left_join_goods_categories left_join_goods_categories, left_join_goods_in_stores left_join_goods_in_stores, left_join_order_items left_join_order_items, left_join_stores left_join_stores, left_join_unit left_join_unit, name(value)
name name, order_items(&) order_items, preload_categories(preload_query : Category::BaseQuery)
preload_categories
preload_categories(&) preload_categories, preload_goods_categories(preload_query : GoodsCategory::BaseQuery)
preload_goods_categories
preload_goods_categories(&) preload_goods_categories, preload_goods_in_stores(preload_query : GoodsInStore::BaseQuery)
preload_goods_in_stores
preload_goods_in_stores(&) preload_goods_in_stores, preload_order_items(preload_query : OrderItem::BaseQuery)
preload_order_items
preload_order_items(&) preload_order_items, preload_stores(preload_query : Store::BaseQuery)
preload_stores
preload_stores(&) preload_stores, preload_unit(preload_query : Unit::BaseQuery)
preload_unit
preload_unit(&) preload_unit, price(value)
price price, right_join_categories right_join_categories, right_join_goods_categories right_join_goods_categories, right_join_goods_in_stores right_join_goods_in_stores, right_join_order_items right_join_order_items, right_join_stores right_join_stores, right_join_unit right_join_unit, stores(&) stores, unit(&) unit, unit_id(value)
unit_id unit_id, update(id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, unit_id : Unit::PrimaryKeyType | Avram::Nothing | Nil = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, price : Float64 | Avram::Nothing = Avram::Nothing.new, weight : Float64 | Avram::Nothing = Avram::Nothing.new) : Int64 update, updated_at(value)
updated_at updated_at, weight(value)
weight weight, where_categories(assoc_query : Category::BaseQuery, auto_inner_join : Bool = true) where_categories, where_goods_categories(assoc_query : GoodsCategory::BaseQuery, auto_inner_join : Bool = true) where_goods_categories, where_goods_in_stores(assoc_query : GoodsInStore::BaseQuery, auto_inner_join : Bool = true) where_goods_in_stores, where_order_items(assoc_query : OrderItem::BaseQuery, auto_inner_join : Bool = true) where_order_items, where_stores(assoc_query : Store::BaseQuery, auto_inner_join : Bool = true) where_stores, where_unit(assoc_query : Unit::BaseQuery, auto_inner_join : Bool = true) where_unit
Constructor methods inherited from class Good::BaseQuery
all : self
all
Class methods inherited from class Good::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_categories(records : Enumerable, preload_query)preload_categories(record, preload_query)
preload_categories(records : Enumerable)
preload_categories(record)
preload_categories(records : Enumerable, &)
preload_categories(record, &) preload_categories, preload_goods_categories(records : Enumerable, preload_query)
preload_goods_categories(record, preload_query)
preload_goods_categories(records : Enumerable)
preload_goods_categories(record)
preload_goods_categories(records : Enumerable, &)
preload_goods_categories(record, &) preload_goods_categories, preload_goods_in_stores(records : Enumerable, preload_query)
preload_goods_in_stores(record, preload_query)
preload_goods_in_stores(records : Enumerable)
preload_goods_in_stores(record)
preload_goods_in_stores(records : Enumerable, &)
preload_goods_in_stores(record, &) preload_goods_in_stores, preload_order_items(records : Enumerable, preload_query)
preload_order_items(record, preload_query)
preload_order_items(records : Enumerable)
preload_order_items(record)
preload_order_items(records : Enumerable, &)
preload_order_items(record, &) preload_order_items, preload_stores(records : Enumerable, preload_query)
preload_stores(record, preload_query)
preload_stores(records : Enumerable)
preload_stores(record)
preload_stores(records : Enumerable, &)
preload_stores(record, &) preload_stores, preload_unit(records : Enumerable, preload_query)
preload_unit(record, preload_query)
preload_unit(records : Enumerable)
preload_unit(record)
preload_unit(records : Enumerable, &)
preload_unit(record, &) preload_unit, truncate(*, cascade : Bool = false) truncate