Module: Torque::PostgreSQL::Base::ClassMethods
- Included in:
- ActiveRecord::Base
- Defined in:
- sig/torque/postgresql/base.rbs
Instance Method Summary collapse
- #arel_property_of ⇒ Torque::PostgreSQL::Arel::Nodes::Property
- #auxiliary_statement {|arg0| ... } ⇒ Object (also: #cte)
- #belongs_to_many {|arg0| ... } ⇒ Object
- #buckets ⇒ relation
- #distinct_on ⇒ relation
- #dynamic_attribute {|arg0| ... } ⇒ Symbol
- #expand_records ⇒ relation
- #inherited ⇒ Object
- #itself_only ⇒ relation
- #join_series {|series, table| ... } ⇒ relation
- #load_schema! ⇒ Object
- #recursive_auxiliary_statement {|arg0| ... } ⇒ Object (also: #recursive_cte)
- #reset_table_name ⇒ String, TableName
- #segments ⇒ relation
- #with ⇒ relation
Instance Method Details
#arel_property_of ⇒ Torque::PostgreSQL::Arel::Nodes::Property
14 |
# File 'sig/torque/postgresql/base.rbs', line 14
def arel_property_of: (column_ref column, *column_ref | Integer path) -> Torque::PostgreSQL::Arel::Nodes::Property
|
#auxiliary_statement {|arg0| ... } ⇒ Object Also known as: cte
20 |
# File 'sig/torque/postgresql/base.rbs', line 20
def auxiliary_statement: (Symbol table) ?{ (AuxiliaryStatement::Settings) -> void } -> untyped
|
#belongs_to_many {|arg0| ... } ⇒ Object
18 |
# File 'sig/torque/postgresql/base.rbs', line 18
def belongs_to_many: (Symbol name, ?Proc? scope, ?class_name: String, ?foreign_key: column_ref, ?primary_key: column_ref, ?dependent: Symbol, ?touch: bool | Symbol, ?optional: bool, ?required: bool, ?default: Proc, ?inverse_of: Symbol, ?autosave: bool, ?validate: bool, **untyped options) ?{ (?) -> untyped } -> untyped
|
#buckets ⇒ relation
12 |
# File 'sig/torque/postgresql/base.rbs', line 12
def buckets: (Relation::column_spec | arel_node attribute, Relation::Buckets::keys values, ?count: Integer?, ?cast: column_ref?, ?as: column_ref?) -> relation
|
#distinct_on ⇒ relation
7 |
# File 'sig/torque/postgresql/base.rbs', line 7
def distinct_on: (*Relation::column_spec value) -> relation
|
#dynamic_attribute {|arg0| ... } ⇒ Symbol
19 |
# File 'sig/torque/postgresql/base.rbs', line 19
def dynamic_attribute: (Symbol name) { (?) -> untyped } -> Symbol
|
#expand_records ⇒ relation
10 |
# File 'sig/torque/postgresql/base.rbs', line 10
def expand_records: (*model types, ?eager_load: bool, ?filter: bool) -> relation
|
#inherited ⇒ Object
17 |
# File 'sig/torque/postgresql/base.rbs', line 17
def inherited: (model subclass) -> untyped
|
#itself_only ⇒ relation
9 |
# File 'sig/torque/postgresql/base.rbs', line 9
def itself_only: () -> relation
|
#join_series {|series, table| ... } ⇒ relation
11 |
# File 'sig/torque/postgresql/base.rbs', line 11
def join_series: (untyped range, ?with: Relation::JoinSeries::with?, ?as: column_ref, ?step: Relation::JoinSeries::step?, ?time_zone: untyped, ?cast: column_ref?, ?mode: Symbol) ?{ (Torque::PostgreSQL::Arel::Nodes::Ref series, arel_table table) -> arel_node } -> relation
|
#load_schema! ⇒ Object
15 |
# File 'sig/torque/postgresql/base.rbs', line 15
def load_schema!: () -> untyped
|
#recursive_auxiliary_statement {|arg0| ... } ⇒ Object Also known as: recursive_cte
22 |
# File 'sig/torque/postgresql/base.rbs', line 22
def recursive_auxiliary_statement: (Symbol table) ?{ (AuxiliaryStatement::Settings) -> void } -> untyped
|
#reset_table_name ⇒ String, TableName
16 |
# File 'sig/torque/postgresql/base.rbs', line 16
def reset_table_name: () -> (String | TableName)
|
#segments ⇒ relation
13 |
# File 'sig/torque/postgresql/base.rbs', line 13
def segments: (**Relation::Segments::condition map) -> relation
|
#with ⇒ relation
8 |
# File 'sig/torque/postgresql/base.rbs', line 8
def with: (*Relation::AuxiliaryStatement::statement args, ?recursive: bool, **untyped settings) -> relation
|