Sha256: 0eff76f0ba6e0ce6467989cde83f1d63ec78f78b710c4c5f6c85764fbb9349ca
Contents?: true
Size: 1.97 KB
Versions: 9
Compression:
Stored size: 1.97 KB
Contents
interface _ActiveRecord_Relation_ClassMethods[Model, Relation, PrimaryKey] def all: () -> Relation def ids: () -> Array[PrimaryKey] def none: () -> Relation def pluck: (Symbol | String column) -> Array[untyped] | (*Symbol | String columns) -> Array[Array[untyped]] def where: (*untyped) -> Relation def exists?: (*untyped) -> bool def order: (*untyped) -> Relation def group: (*Symbol | String) -> untyped def distinct: () -> self def or: (Relation) -> Relation def merge: (Relation) -> Relation def joins: (*String | Symbol) -> self | (Hash[untyped, untyped]) -> self def left_joins: (*String | Symbol) -> self | (Hash[untyped, untyped]) -> self def left_outer_joins: (*String | Symbol) -> self | (Hash[untyped, untyped]) -> self def includes: (*String | Symbol) -> self | (Hash[untyped, untyped]) -> self def eager_load: (*String | Symbol) -> self | (Hash[untyped, untyped]) -> self def preload: (*String | Symbol) -> self | (Hash[untyped, untyped]) -> self def find_by: (*untyped) -> Model? def find_by!: (*untyped) -> Model def find: (PrimaryKey id) -> Model | (Array[PrimaryKey]) -> Array[Model] | (*PrimaryKey) -> Array[Model] def first: () -> Model? | (Integer count) -> Array[Model] def first!: () -> Model def last: () -> Model? | (Integer count) -> Array[Model] def last!: () -> Model def limit: (Integer | Arel::Nodes::SqlLiteral | nil) -> Relation def find_each: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (Model) -> void } -> nil def find_in_batches: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (self) -> void } -> nil def destroy_all: () -> untyped def delete_all: () -> untyped def update_all: (*untyped) -> untyped def select: (*Symbol | String) -> Relation | () { (Model) -> boolish } -> Array[Model] end
Version data entries
9 entries across 3 versions & 1 rubygems