Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Extended by:
Torque::PostgreSQL::AutosaveAssociation::ClassMethods, Torque::PostgreSQL::Base::ClassMethods, Torque::PostgreSQL::Inheritance::ClassMethods
Includes:
Torque::PostgreSQL::AutosaveAssociation, Torque::PostgreSQL::Base, Torque::PostgreSQL::Inheritance, Torque::PostgreSQL::Inheritance::Record, Torque::PostgreSQL::Validations
Defined in:
sig/torque/postgresql/inheritance.rbs,
sig/torque/postgresql/validations.rbs,
sig/torque/postgresql/attributes/enum.rbs,
sig/torque/postgresql/attributes/period.rbs,
sig/torque/postgresql/attributes/struct.rbs,
sig/torque/postgresql/attributes/enum_set.rbs,
sig/torque/postgresql/relation/cross_join.rbs,
sig/torque/postgresql/autosave_association.rbs,
sig/torque/postgresql/attributes/full_text_search.rbs,
sig/torque/postgresql/base.rbs

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Torque::PostgreSQL::Inheritance::ClassMethods

_record_class_attribute, _record_class_column_name, base_class, casted_dependents, compute_table_name, decorated_table_name, inheritance_column_prefix, inheritance_dependent_prefixes, inheritance_dependents, inheritance_expandable_dependents, inheritance_foreign_attribute_names, inheritance_mergeable_attributes, inheritance_merged_attributes, physically_inheritance_root, physically_inheritances?, physically_inherited?, primary_key, raise_unable_to_cast, reload_schema_from_cache, reset_table_name

Methods included from Torque::PostgreSQL::AutosaveAssociation::ClassMethods

add_autosave_association_callbacks

Methods included from Torque::PostgreSQL::Base::ClassMethods

arel_property_of, auxiliary_statement, belongs_to_many, buckets, distinct_on, dynamic_attribute, expand_records, inherited, itself_only, join_series, load_schema!, recursive_auxiliary_statement, reset_table_name, segments, with

Methods included from Torque::PostgreSQL::Inheritance::Record

#destroy, #partial_record?, #reload

Methods included from Torque::PostgreSQL::AutosaveAssociation

#save_belongs_to_many_association

Class Method Details

.auxiliary_statements_list ⇒ Hash[Symbol, singleton(Torque::PostgreSQL::AuxiliaryStatement)]

Returns:



38
# File 'sig/torque/postgresql/base.rbs', line 38

def self.auxiliary_statements_list: () -> Hash[Symbol, singleton(Torque::PostgreSQL::AuxiliaryStatement)]

.auxiliary_statements_list= ⇒ Hash[Symbol, singleton(Torque::PostgreSQL::AuxiliaryStatement)]

Parameters:

Returns:



39
# File 'sig/torque/postgresql/base.rbs', line 39

def self.auxiliary_statements_list=: (Hash[Symbol, singleton(Torque::PostgreSQL::AuxiliaryStatement)] value) -> Hash[Symbol, singleton(Torque::PostgreSQL::AuxiliaryStatement)]

.belongs_to_many_required_by_default ⇒ Boolean?

Returns:

  • (Boolean, nil)


33
# File 'sig/torque/postgresql/base.rbs', line 33

def self.belongs_to_many_required_by_default: () -> bool?

.belongs_to_many_required_by_default= ⇒ Boolean?

Parameters:

  • value (Boolean, nil)

Returns:

  • (Boolean, nil)


34
# File 'sig/torque/postgresql/base.rbs', line 34

def self.belongs_to_many_required_by_default=: (bool? value) -> bool?

.cross_join ⇒ ActiveRecord::Relation

Parameters:

  • source (Object)
  • as: (Torque::PostgreSQL::column_ref)
  • columns: (Array[Torque::PostgreSQL::column_ref], nil)
  • mode: (Symbol, String)
  • with_ordinality: (Torque::PostgreSQL::Relation::CrossJoin::ordinality)

Returns:



62
# File 'sig/torque/postgresql/relation/cross_join.rbs', line 62

def self.cross_join: (untyped source, as: Torque::PostgreSQL::column_ref, ?columns: Array[Torque::PostgreSQL::column_ref]?, ?mode: Symbol | String, ?with_ordinality: Torque::PostgreSQL::Relation::CrossJoin::ordinality) -> ActiveRecord::Relation

.period_for ⇒ Object

Parameters:

  • attributes (Torque::PostgreSQL::column_ref)
  • pessimistic: (Boolean)
  • threshold: (bool, Torque::PostgreSQL::column_ref, ActiveSupport::Duration, Numeric)
  • methods: (Hash[Symbol, Torque::PostgreSQL::column_ref])
  • prefixed: (Boolean)
  • force: (Boolean)

Returns:

  • (Object)


12
# File 'sig/torque/postgresql/attributes/period.rbs', line 12

def self.period_for: (*Torque::PostgreSQL::column_ref attributes, ?pessimistic: bool, ?threshold: bool | Torque::PostgreSQL::column_ref | ActiveSupport::Duration | Numeric, ?methods: Hash[Symbol, Torque::PostgreSQL::column_ref], ?prefixed: bool, ?force: bool) -> untyped

.schema ⇒ String, ...

Returns:

  • (String, Symbol, nil)


35
# File 'sig/torque/postgresql/base.rbs', line 35

def self.schema: () -> (String | Symbol | nil)

.schema= ⇒ String, ...

Parameters:

  • value (String, Symbol, nil)

Returns:

  • (String, Symbol, nil)


36
# File 'sig/torque/postgresql/base.rbs', line 36

def self.schema=: (String | Symbol | nil value) -> (String | Symbol | nil)

.struct_for ⇒ Object

Parameters:

  • column (Torque::PostgreSQL::column_ref)
  • struct_klass (Torque::PostgreSQL::Attributes::Struct::struct_class)
  • default: (Object)
  • array: (Boolean, nil)
  • delegate: (Torque::PostgreSQL::Attributes::Struct::delegate)
  • backfill: (Torque::PostgreSQL::Adapter::OID::Struct::backfill)
  • strict: (Boolean, nil)

Returns:

  • (Object)


37
# File 'sig/torque/postgresql/attributes/struct.rbs', line 37

def self.struct_for: (Torque::PostgreSQL::column_ref column, Torque::PostgreSQL::Attributes::Struct::struct_class struct_klass, ?default: untyped, ?array: bool?, ?delegate: Torque::PostgreSQL::Attributes::Struct::delegate, ?backfill: Torque::PostgreSQL::Adapter::OID::Struct::backfill, ?strict: bool?) -> untyped

.torque_enum ⇒ Object

Parameters:

  • attributes (Torque::PostgreSQL::column_ref)
  • only: (Array[Torque::PostgreSQL::column_ref], Torque::PostgreSQL::column_ref)
  • except: (Array[Torque::PostgreSQL::column_ref], Torque::PostgreSQL::column_ref)
  • prefix: (bool, Torque::PostgreSQL::column_ref)
  • suffix: (bool, Torque::PostgreSQL::column_ref)
  • force: (Boolean)

Returns:

  • (Object)


68
# File 'sig/torque/postgresql/attributes/enum.rbs', line 68

def self.torque_enum: (*Torque::PostgreSQL::column_ref attributes, ?only: Array[Torque::PostgreSQL::column_ref] | Torque::PostgreSQL::column_ref, ?except: Array[Torque::PostgreSQL::column_ref] | Torque::PostgreSQL::column_ref, ?prefix: bool | Torque::PostgreSQL::column_ref, ?suffix: bool | Torque::PostgreSQL::column_ref, ?force: bool) -> untyped

.torque_enum_set ⇒ Object

Parameters:

  • attributes (Torque::PostgreSQL::column_ref)
  • only: (Array[Torque::PostgreSQL::column_ref], Torque::PostgreSQL::column_ref)
  • except: (Array[Torque::PostgreSQL::column_ref], Torque::PostgreSQL::column_ref)
  • prefix: (bool, Torque::PostgreSQL::column_ref)
  • suffix: (bool, Torque::PostgreSQL::column_ref)
  • force: (Boolean)

Returns:

  • (Object)


74
# File 'sig/torque/postgresql/attributes/enum_set.rbs', line 74

def self.torque_enum_set: (*Torque::PostgreSQL::column_ref attributes, ?only: Array[Torque::PostgreSQL::column_ref] | Torque::PostgreSQL::column_ref, ?except: Array[Torque::PostgreSQL::column_ref] | Torque::PostgreSQL::column_ref, ?prefix: bool | Torque::PostgreSQL::column_ref, ?suffix: bool | Torque::PostgreSQL::column_ref, ?force: bool) -> untyped

.torque_search_for ⇒ Object

Parameters:

  • attributes (Torque::PostgreSQL::column_ref)
  • with_rank: (bool, Torque::PostgreSQL::column_ref)
  • mode: (Symbol)
  • order: (bool, Symbol)
  • language: (String, Symbol)
  • prefix: (Torque::PostgreSQL::column_ref)
  • suffix: (Torque::PostgreSQL::column_ref)
  • force: (Boolean)

Returns:

  • (Object)


12
# File 'sig/torque/postgresql/attributes/full_text_search.rbs', line 12

def self.torque_search_for: (*Torque::PostgreSQL::column_ref attributes, ?with_rank: bool | Torque::PostgreSQL::column_ref, ?mode: Symbol, ?order: bool | Symbol, ?language: String | Symbol, ?prefix: Torque::PostgreSQL::column_ref, ?suffix: Torque::PostgreSQL::column_ref, ?force: bool) -> untyped

Instance Method Details

#auxiliary_statements_list ⇒ Hash[Symbol, singleton(Torque::PostgreSQL::AuxiliaryStatement)]

Returns:



40
# File 'sig/torque/postgresql/base.rbs', line 40

def auxiliary_statements_list: () -> Hash[Symbol, singleton(Torque::PostgreSQL::AuxiliaryStatement)]

#schema ⇒ String, ...

Returns:

  • (String, Symbol, nil)


37
# File 'sig/torque/postgresql/base.rbs', line 37

def schema: () -> (String | Symbol | nil)