Documentation / @blazetrails/activerecord / DisableJoinsAssociationRelation
Class: DisableJoinsAssociationRelation<T>
Defined in: packages/activerecord/lib/disable-joins-association-relation.ts:11
Extends
Relation<T,boolean>
Type Parameters
| Type Parameter |
|---|
T extends Base |
Constructors
Constructor
new DisableJoinsAssociationRelation<
T>(klass,key,ids):DisableJoinsAssociationRelation<T>
Defined in: packages/activerecord/lib/disable-joins-association-relation.ts:15
Parameters
| Parameter | Type |
|---|---|
klass | typeof Base & (attributes?, block?) => T |
key | string |
ids | DjarIds |
Returns
DisableJoinsAssociationRelation<T>
Overrides
Properties
_selectBang
_selectBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
_withIsRecursive
_withIsRecursive:
boolean=false
Defined in: packages/activerecord/lib/relation.ts:365
Inherited from
andBang
andBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [QueryMethodsHost] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
annotateBang
annotateBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | string[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
annotateValues
annotateValues:
string[]
Defined in: packages/activerecord/lib/relation.ts:1880
Inherited from
arelColumn
arelColumn: (...
args) =>unknown
Defined in: packages/activerecord/lib/relation/query-methods.ts:1705
Parameters
| Parameter | Type |
|---|---|
...args | [string | number | ArelNode | null, (attr) => unknown] |
Returns
unknown
Inherited from
arelColumnAliasesFromHash
arelColumnAliasesFromHash: (...
args) =>unknown[]
Defined in: packages/activerecord/lib/relation/query-methods.ts:1721
Parameters
| Parameter | Type |
|---|---|
...args | [Record<string, unknown>] |
Returns
unknown[]
Inherited from
Relation.arelColumnAliasesFromHash
arelColumnWithTable
arelColumnWithTable: (...
args) =>Attribute|SqlLiteral
Defined in: packages/activerecord/lib/relation/query-methods.ts:1704
Parameters
| Parameter | Type |
|---|---|
...args | [string, string] |
Returns
Attribute | SqlLiteral
Inherited from
async
async: (...
args) =>Relation<T,boolean>
Parameters
| Parameter | Type |
|---|---|
...args | [] |
Returns
Relation<T, boolean>
Inherited from
asyncBang
asyncBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
buildArel
buildArel: (...
args) =>any
Defined in: packages/activerecord/lib/relation/query-methods.ts:1691
Parameters
| Parameter | Type |
|---|---|
...args | [DatabaseAdapter, AliasTracker] |
Returns
any
Inherited from
buildBoundSqlLiteral
buildBoundSqlLiteral: (...
args) =>BoundSqlLiteral
Defined in: packages/activerecord/lib/relation/query-methods.ts:1686
Parameters
| Parameter | Type |
|---|---|
...args | [string, unknown[]] |
Returns
BoundSqlLiteral
Inherited from
buildCaseForValuePosition
buildCaseForValuePosition: (...
args) =>Ascending
Defined in: packages/activerecord/lib/relation/query-methods.ts:1717
Parameters
| Parameter | Type |
|---|---|
...args | [unknown, unknown[], { filter?: boolean; }] |
Returns
Ascending
Inherited from
Relation.buildCaseForValuePosition
buildCastValue
buildCastValue: { }
Defined in: packages/activerecord/lib/relation/query-methods.ts:1692
Inherited from
buildExplainClause
buildExplainClause: { }
Defined in: packages/activerecord/lib/explain.ts:140
Inherited from
buildFrom
buildFrom: (...
args) =>string|ArelNode
Defined in: packages/activerecord/lib/relation/query-methods.ts:1693
Parameters
| Parameter | Type |
|---|---|
...args | [] |
Returns
string | ArelNode
Inherited from
buildHavingClause
readonlybuildHavingClause: (...args) =>WhereClause=buildWhereClause
Defined in: packages/activerecord/lib/relation/query-methods.ts:1677
Parameters
| Parameter | Type |
|---|---|
...args | [unknown, unknown[]] |
Returns
WhereClause
Inherited from
buildJoinBuckets
buildJoinBuckets: (...
args) => [Hash<string,unknown[]>, typeofInnerJoin| typeofOuterJoin]
Defined in: packages/activerecord/lib/relation/query-methods.ts:1696
Parameters
| Parameter | Type |
|---|---|
...args | [] |
Returns
[Hash<string, unknown[]>, typeof InnerJoin | typeof OuterJoin]
Inherited from
buildJoinDependencies
buildJoinDependencies: (...
args) =>JoinDependency[]
Defined in: packages/activerecord/lib/relation/query-methods.ts:1689
Parameters
| Parameter | Type |
|---|---|
...args | [] |
Returns
JoinDependency[]
Inherited from
Relation.buildJoinDependencies
buildJoins
buildJoins: (...
args) =>any[]
Defined in: packages/activerecord/lib/relation/query-methods.ts:1697
Parameters
| Parameter | Type |
|---|---|
...args | [any[], AliasTracker] |
Returns
any[]
Inherited from
buildNamedBoundSqlLiteral
buildNamedBoundSqlLiteral: (...
args) =>BoundSqlLiteral
Defined in: packages/activerecord/lib/relation/query-methods.ts:1685
Parameters
| Parameter | Type |
|---|---|
...args | [string, Record<string, unknown>] |
Returns
BoundSqlLiteral
Inherited from
Relation.buildNamedBoundSqlLiteral
buildOrder
buildOrder: (...
args) =>unknown
Defined in: packages/activerecord/lib/relation/query-methods.ts:1709
Parameters
| Parameter | Type |
|---|---|
...args | [any] |
Returns
unknown
Inherited from
buildSelect
buildSelect: (...
args) =>void
Defined in: packages/activerecord/lib/relation/query-methods.ts:1698
Parameters
| Parameter | Type |
|---|---|
...args | [any] |
Returns
void
Inherited from
buildSubquery
buildSubquery: (...
args) =>SelectManager
Defined in: packages/activerecord/lib/relation/query-methods.ts:1675
Parameters
| Parameter | Type |
|---|---|
...args | [string | SqlLiteral, unknown] |
Returns
Inherited from
buildWhereClause
buildWhereClause: (...
args) =>WhereClause
Defined in: packages/activerecord/lib/relation/query-methods.ts:1676
Parameters
| Parameter | Type |
|---|---|
...args | [unknown, unknown[]] |
Returns
WhereClause
Inherited from
buildWith
buildWith: (...
args) =>SelectManager|undefined
Defined in: packages/activerecord/lib/relation/query-methods.ts:1699
Parameters
| Parameter | Type |
|---|---|
...args | [SelectManager] |
Returns
SelectManager | undefined
Inherited from
buildWithExpressionFromValue
buildWithExpressionFromValue: (...
args) =>unknown
Defined in: packages/activerecord/lib/relation/query-methods.ts:1701
Parameters
| Parameter | Type |
|---|---|
...args | [unknown, boolean] |
Returns
unknown
Inherited from
Relation.buildWithExpressionFromValue
buildWithJoinNode
buildWithJoinNode: (...
args) =>unknown
Defined in: packages/activerecord/lib/relation/query-methods.ts:1702
Parameters
| Parameter | Type |
|---|---|
...args | [string, typeof InnerJoin | typeof OuterJoin] |
Returns
unknown
Inherited from
buildWithValueFromHash
buildWithValueFromHash: (...
args) =>TableAlias[]
Defined in: packages/activerecord/lib/relation/query-methods.ts:1700
Parameters
| Parameter | Type |
|---|---|
...args | [Record<string, unknown>] |
Returns
TableAlias[]
Inherited from
Relation.buildWithValueFromHash
collectingQueriesForExplain
collectingQueriesForExplain: (
fn) =>Promise<[string,unknown[]][]>
Defined in: packages/activerecord/lib/explain.ts:137
Parameters
| Parameter | Type |
|---|---|
fn | () => Promise<unknown> |
Returns
Promise<[string, unknown[]][]>
Inherited from
Relation.collectingQueriesForExplain
columnReferences
columnReferences: { }
Defined in: packages/activerecord/lib/relation/query-methods.ts:1714
Inherited from
constructJoinDependency
constructJoinDependency: (...
args) =>JoinDependency
Defined in: packages/activerecord/lib/relation/query-methods.ts:1670
Parameters
| Parameter | Type |
|---|---|
...args | [string | AssociationSpec[], unknown] |
Returns
JoinDependency
Inherited from
Relation.constructJoinDependency
createWithBang
createWithBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [Record<string, unknown> | Map<string, unknown> | null] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
createWithValue
createWithValue:
Record<string,unknown>
Defined in: packages/activerecord/lib/relation.ts:1890
Inherited from
distinctBang
distinctBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [boolean] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
distinctValue
distinctValue:
boolean|null
Defined in: packages/activerecord/lib/relation.ts:1889
Inherited from
eachJoinDependencies
eachJoinDependencies: (...
args) =>void
Defined in: packages/activerecord/lib/relation/query-methods.ts:1688
Parameters
| Parameter | Type |
|---|---|
...args | [JoinDependency[], (join) => void] |
Returns
void
Inherited from
eagerLoadBang
eagerLoadBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | AssociationSpec[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
eagerLoadValues
eagerLoadValues:
AssociationSpec[]
Defined in: packages/activerecord/lib/relation.ts:1868
Inherited from
excludingBang
excludingBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [unknown[]] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
execExplain
execExplain: (...
args) =>Promise
Defined in: packages/activerecord/lib/explain.ts:138
Parameters
| Parameter | Type |
|---|---|
...args | [[string, unknown[]][], string[]] |
Returns
Promise
Inherited from
extendingBang
extendingBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | object[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
extendingValues
extendingValues:
object[]
Defined in: packages/activerecord/lib/relation.ts:1876
Inherited from
extensions
readonlyextensions:object[]
Defined in: packages/activerecord/lib/relation.ts:1877
Inherited from
extractTableNameFrom
extractTableNameFrom: { }
Defined in: packages/activerecord/lib/relation/query-methods.ts:1715
Inherited from
flattenedArgs
flattenedArgs: { }
Defined in: packages/activerecord/lib/relation/query-methods.ts:1711
Inherited from
fromBang
fromBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [string | QueryMethodsHost | ArelNode, string] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
fromClause
fromClause:
FromClause
Defined in: packages/activerecord/lib/relation.ts:1894
Inherited from
groupBang
groupBang: (...
args) =>QueryMethodsHost
Defined in: packages/activerecord/lib/relation/query-methods.ts:1613
Parameters
| Parameter | Type |
|---|---|
...args | (string | ArelNode)[] |
Returns
QueryMethodsHost
Inherited from
groupValues
groupValues: (
string|ArelNode)[]
Defined in: packages/activerecord/lib/relation.ts:1871
Inherited from
havingBang
havingBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [string | Record<string, unknown> | Node | SqlLiteral, ...rest: unknown[]] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
havingClause
havingClause:
WhereClause
Defined in: packages/activerecord/lib/relation.ts:1893
Inherited from
includesBang
includesBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | AssociationSpec[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
includesValues
includesValues:
AssociationSpec[]
Defined in: packages/activerecord/lib/relation.ts:1867
Inherited from
invertWhereBang
invertWhereBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
isDoesNotSupportReverse
isDoesNotSupportReverse: { }
Defined in: packages/activerecord/lib/relation/query-methods.ts:1708
Inherited from
Relation.isDoesNotSupportReverse
isTableNameMatches
isTableNameMatches: (...
args) =>boolean
Defined in: packages/activerecord/lib/relation/query-methods.ts:1706
Parameters
| Parameter | Type |
|---|---|
...args | [unknown] |
Returns
boolean
Inherited from
joinsBang
joinsBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | (string | Join | JoinDependency)[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
joinsValues
joinsValues: (
AssociationSpec|Join|JoinDependency)[]
Defined in: packages/activerecord/lib/relation.ts:1873
Inherited from
key
readonlykey:string
Defined in: packages/activerecord/lib/disable-joins-association-relation.ts:12
leftOuterJoinsBang
leftOuterJoinsBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | AssociationSpec[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
leftOuterJoinsValues
leftOuterJoinsValues:
AssociationSpec[]
Defined in: packages/activerecord/lib/relation.ts:1874
Inherited from
limitBang
limitBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [string | number | null] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
limitValue
limitValue:
string|number|null
Defined in: packages/activerecord/lib/relation.ts:1882
Inherited from
lockBang
lockBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [string | boolean | SqlLiteral | null] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
lockValue
lockValue:
string|boolean|SqlLiteral|null
Defined in: packages/activerecord/lib/relation.ts:1884
Inherited from
lookupTableKlassFromJoinDependencies
lookupTableKlassFromJoinDependencies: (...
args) =>unknown
Defined in: packages/activerecord/lib/relation/query-methods.ts:1687
Parameters
| Parameter | Type |
|---|---|
...args | [string] |
Returns
unknown
Inherited from
Relation.lookupTableKlassFromJoinDependencies
noneBang
noneBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
offsetBang
offsetBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [string | number | null] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
offsetValue
offsetValue:
string|number|null
Defined in: packages/activerecord/lib/relation.ts:1883
Inherited from
optimizerHintsBang
optimizerHintsBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | string[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
optimizerHintsValues
optimizerHintsValues:
string[]
Defined in: packages/activerecord/lib/relation.ts:1879
Inherited from
orBang
orBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [QueryMethodsHost] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
orderBang
orderBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | OrderArg[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
orderColumn
orderColumn: (...
args) =>unknown
Defined in: packages/activerecord/lib/relation/query-methods.ts:1716
Parameters
| Parameter | Type |
|---|---|
...args | [string] |
Returns
unknown
Inherited from
orderValues
orderValues: (
string|ArelNode)[]
Defined in: packages/activerecord/lib/relation.ts:1872
Inherited from
preloadBang
preloadBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | AssociationSpec[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
preloadValues
preloadValues:
AssociationSpec[]
Defined in: packages/activerecord/lib/relation.ts:1869
Inherited from
preprocessOrderArgs
preprocessOrderArgs: (...
args) =>void
Defined in: packages/activerecord/lib/relation/query-methods.ts:1712
Parameters
| Parameter | Type |
|---|---|
...args | [unknown[]] |
Returns
void
Inherited from
processSelectArgs
processSelectArgs: (...
args) =>SelectArg[]
Defined in: packages/activerecord/lib/relation/query-methods.ts:1720
Parameters
| Parameter | Type |
|---|---|
...args | [SelectArg[]] |
Returns
SelectArg[]
Inherited from
processWithArgs
processWithArgs: (...
args) =>Record<string,unknown>[]
Defined in: packages/activerecord/lib/relation/query-methods.ts:1722
Parameters
| Parameter | Type |
|---|---|
...args | [unknown[]] |
Returns
Record<string, unknown>[]
Inherited from
readonlyBang
readonlyBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [boolean] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
readonlyValue
readonlyValue:
boolean|null
Defined in: packages/activerecord/lib/relation.ts:1885
Inherited from
referencesBang
referencesBang: (...
args) =>any
Defined in: packages/activerecord/lib/relation/query-methods.ts:1605
Parameters
| Parameter | Type |
|---|---|
...args | (string | SqlLiteral)[] |
Returns
any
Inherited from
referencesValues
referencesValues: (
string|SqlLiteral)[]
Defined in: packages/activerecord/lib/relation.ts:1875
Inherited from
regroupBang
regroupBang: (...
args) =>QueryMethodsHost
Defined in: packages/activerecord/lib/relation/query-methods.ts:1615
Parameters
| Parameter | Type |
|---|---|
...args | (string | ArelNode)[] |
Returns
QueryMethodsHost
Inherited from
renderBind
renderBind: { }
Defined in: packages/activerecord/lib/explain.ts:139
Inherited from
reorderBang
reorderBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | OrderArg[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
reorderingValue
reorderingValue:
boolean|null
Defined in: packages/activerecord/lib/relation.ts:1886
Inherited from
reselectBang
reselectBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | SelectArg[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
resolveArelAttributes
resolveArelAttributes: (...
args) =>unknown[]
Defined in: packages/activerecord/lib/relation/query-methods.ts:1718
Parameters
| Parameter | Type |
|---|---|
...args | [unknown[]] |
Returns
unknown[]
Inherited from
Relation.resolveArelAttributes
reverseOrderBang
reverseOrderBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
reverseOrderValue
reverseOrderValue:
boolean|null
Defined in: packages/activerecord/lib/relation.ts:1888
Inherited from
reverseSqlOrder
reverseSqlOrder: (...
args) =>unknown[]
Defined in: packages/activerecord/lib/relation/query-methods.ts:1707
Parameters
| Parameter | Type |
|---|---|
...args | [unknown[]] |
Returns
unknown[]
Inherited from
sanitizeOrderArguments
sanitizeOrderArguments: (...
args) =>unknown[]
Defined in: packages/activerecord/lib/relation/query-methods.ts:1713
Parameters
| Parameter | Type |
|---|---|
...args | [unknown[]] |
Returns
unknown[]
Inherited from
Relation.sanitizeOrderArguments
selectAssociationList
selectAssociationList: (...
args) =>unknown[]
Defined in: packages/activerecord/lib/relation/query-methods.ts:1695
Parameters
| Parameter | Type |
|---|---|
...args | [unknown[], unknown[] | null, (join) => void] |
Returns
unknown[]
Inherited from
Relation.selectAssociationList
selectNamedJoins
selectNamedJoins: (...
args) =>unknown[]
Defined in: packages/activerecord/lib/relation/query-methods.ts:1694
Parameters
| Parameter | Type |
|---|---|
...args | [unknown[], unknown[] | null, (join) => void] |
Returns
unknown[]
Inherited from
selectValues
selectValues: (
string|ArelNode)[]
Defined in: packages/activerecord/lib/relation.ts:1870
Inherited from
skipPreloadingBang
skipPreloadingBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
skipPreloadingValue
skipPreloadingValue:
boolean=false
Defined in: packages/activerecord/lib/relation.ts:368
Inherited from
skipQueryCacheBang
skipQueryCacheBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [boolean] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
skipQueryCacheValue
skipQueryCacheValue:
boolean|null
Defined in: packages/activerecord/lib/relation.ts:1891
Inherited from
strictLoadingBang
strictLoadingBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [boolean] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
strictLoadingValue
strictLoadingValue:
boolean|null
Defined in: packages/activerecord/lib/relation.ts:1887
Inherited from
structurallyIncompatibleValuesFor
structurallyIncompatibleValuesFor: (...
args) =>string[]
Defined in: packages/activerecord/lib/relation/query-methods.ts:1723
Parameters
| Parameter | Type |
|---|---|
...args | [QueryMethodsHost] |
Returns
string[]
Inherited from
Relation.structurallyIncompatibleValuesFor
uniqBang
uniqBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [string] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
unscopeBang
unscopeBang: (...
args) =>QueryMethodsHost
Defined in: packages/activerecord/lib/relation/query-methods.ts:1622
Parameters
| Parameter | Type |
|---|---|
...args | UnscopeArg[] |
Returns
QueryMethodsHost
Inherited from
unscopeValues
unscopeValues:
UnscopeArg[]
Defined in: packages/activerecord/lib/relation.ts:1878
Inherited from
validateOrderArgs
validateOrderArgs: (...
args) =>void
Defined in: packages/activerecord/lib/relation/query-methods.ts:1710
Parameters
| Parameter | Type |
|---|---|
...args | [unknown[]] |
Returns
void
Inherited from
whereBang
whereBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | [unknown, ...rest: unknown[]] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
whereClause
whereClause:
WhereClause
Defined in: packages/activerecord/lib/relation.ts:1892
Inherited from
withBang
withBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | WithArg[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
withRecursiveBang
withRecursiveBang: (...
args) =>Omit<Relation<T,boolean>,"then"|"catch"|"finally">
Parameters
| Parameter | Type |
|---|---|
...args | WithArg[] |
Returns
Omit<Relation<T, boolean>, "then" | "catch" | "finally">
Inherited from
withValues
withValues:
Record<string,unknown>[]
Defined in: packages/activerecord/lib/relation.ts:1881
Inherited from
CLAUSE_METHODS
readonlystaticCLAUSE_METHODS: readonly ["where","having","from"]
Defined in: packages/activerecord/lib/relation.ts:354
Inherited from
create
staticcreate: (this,model, ...args) =>any=_delegationCreate
Defined in: packages/activerecord/lib/relation.ts:320
Parameters
| Parameter | Type |
|---|---|
this | FamilyCtor |
model | typeof Base |
...args | any[] |
Returns
any
Inherited from
INVALID_METHODS_FOR_DELETE_ALL
readonlystaticINVALID_METHODS_FOR_DELETE_ALL: readonly ["distinct","with","with_recursive"]
Defined in: packages/activerecord/lib/relation.ts:352
Inherited from
Relation.INVALID_METHODS_FOR_DELETE_ALL
MULTI_VALUE_METHODS
readonlystaticMULTI_VALUE_METHODS: readonly ["includes","eagerLoad","preload","select","group","order","joins","leftOuterJoins","references","extending","unscope","optimizerHints","annotate","with"]
Defined in: packages/activerecord/lib/relation.ts:322
Inherited from
QueryAttribute
staticQueryAttribute: typeofQueryAttribute
Defined in: packages/activerecord/lib/relation.ts:319
Inherited from
SINGLE_VALUE_METHODS
readonlystaticSINGLE_VALUE_METHODS: readonly ["limit","offset","lock","readonly","reordering","strictLoading","reverseOrder","distinct","createWith","skipQueryCache"]
Defined in: packages/activerecord/lib/relation.ts:339
Inherited from
StrictLoadingScope
staticStrictLoadingScope: typeofStrictLoadingScope
Defined in: packages/activerecord/lib/relation.ts:1321
Inherited from
VALUE_METHODS
readonlystaticVALUE_METHODS: readonlyValueMethod[]
Defined in: packages/activerecord/lib/relation.ts:356
Inherited from
WhereClause
staticWhereClause: typeofWhereClause
Defined in: packages/activerecord/lib/relation.ts:318
Inherited from
Accessors
_isRecordsSynchronous
Get Signature
get _isRecordsSynchronous():
boolean
Defined in: packages/activerecord/lib/relation.ts:490
Returns
boolean
Inherited from
Relation._isRecordsSynchronous
_records
Get Signature
get
protected_records():T[]
Defined in: packages/activerecord/lib/relation.ts:372
Returns
T[]
Set Signature
set
protected_records(records):void
Defined in: packages/activerecord/lib/relation.ts:376
Parameters
| Parameter | Type |
|---|---|
records | T[] |
Returns
void
Inherited from
connection
Get Signature
get connection():
DatabaseAdapter
Defined in: packages/activerecord/lib/relation.ts:2177
Returns
Inherited from
hasLimitOrOffset
Get Signature
get hasLimitOrOffset():
boolean
Defined in: packages/activerecord/lib/relation.ts:1568
Returns
boolean
Inherited from
isEagerLoading
Get Signature
get isEagerLoading():
boolean
Defined in: packages/activerecord/lib/relation.ts:1542
Returns
boolean
Inherited from
isEmptyScope
Get Signature
get isEmptyScope():
boolean
Defined in: packages/activerecord/lib/relation.ts:1564
Returns
boolean
Inherited from
isLoaded
Get Signature
get isLoaded():
boolean
Defined in: packages/activerecord/lib/relation.ts:457
Returns
boolean
Inherited from
isLocked
Get Signature
get isLocked():
string|boolean|SqlLiteral|null
Defined in: packages/activerecord/lib/relation.ts:453
Returns
string | boolean | SqlLiteral | null
Inherited from
isReadonly
Get Signature
get isReadonly():
boolean|null
Defined in: packages/activerecord/lib/relation.ts:449
Returns
boolean | null
Inherited from
isScheduled
Get Signature
get isScheduled():
boolean
Defined in: packages/activerecord/lib/relation.ts:1538
Returns
boolean
Inherited from
joinedIncludesValues
Get Signature
get joinedIncludesValues():
AssociationSpec[]
Defined in: packages/activerecord/lib/relation.ts:1549
Returns
AssociationSpec[]
Inherited from
klass
Get Signature
get klass(): typeof
Base& (attributes?,block?) =>T
Defined in: packages/activerecord/lib/relation.ts:1513
Returns
typeof Base & (attributes?, block?) => T
Inherited from
loaded
Get Signature
get loaded():
boolean
Defined in: packages/activerecord/lib/relation.ts:1517
Returns
boolean
Inherited from
model
Get Signature
get model(): typeof
Base& (attributes?,block?) =>T
Defined in: packages/activerecord/lib/relation.ts:1509
Returns
typeof Base & (attributes?, block?) => T
Inherited from
name
Get Signature
get name():
RelationName
Defined in: packages/activerecord/lib/relation.ts:2180
Returns
RelationName
Inherited from
predicateBuilder
Get Signature
get predicateBuilder():
PredicateBuilder
Defined in: packages/activerecord/lib/relation.ts:1534
Returns
PredicateBuilder
Inherited from
primaryKey
Get Signature
get primaryKey():
string|string[]
Defined in: packages/activerecord/lib/relation.ts:2178
Returns
string | string[]
Inherited from
table
Get Signature
get table():
Table
Defined in: packages/activerecord/lib/relation.ts:1505
Returns
Inherited from
tableName
Get Signature
get tableName():
string
Defined in: packages/activerecord/lib/relation.ts:2179
Returns
string
Inherited from
Methods
_create()
protected_create(attributes,block?):Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1770
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown> | PermittedAttributes |
block? | (record) => void |
Returns
Promise<T>
Inherited from
_createBang()
protected_createBang(attributes,block?):Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1777
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown> | PermittedAttributes |
block? | (record) => void |
Returns
Promise<T>
Inherited from
_execScope()
_execScope(...
args):unknown
Defined in: packages/activerecord/lib/relation.ts:1729
Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
unknown
Inherited from
_new()
protected_new(attributes,block?):T
Defined in: packages/activerecord/lib/relation.ts:1763
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown> | PermittedAttributes |
block? | (record) => void |
Returns
T
Inherited from
[asyncIterator]()
[asyncIterator]():
AsyncIterableIterator<T>
Defined in: packages/activerecord/lib/relation.ts:828
Returns
AsyncIterableIterator<T>
No Rails Equivalent
PERMANENT
Inherited from
[iterator]()
[iterator]():
IterableIterator<T>
Defined in: packages/activerecord/lib/relation.ts:2145
Returns
IterableIterator<T>
Inherited from
aliasTracker()
aliasTracker(
joins?,aliases?):AliasTracker
Defined in: packages/activerecord/lib/relation.ts:1572
Parameters
| Parameter | Type | Default value |
|---|---|---|
joins | Node[] | [] |
aliases? | Hash<string, number> | undefined |
Returns
AliasTracker
Inherited from
all()
all():
Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2012
Returns
Relation<T, boolean>
Inherited from
and()
and(
other):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2067
Parameters
| Parameter | Type |
|---|---|
other | Relation<T, boolean> |
Returns
Relation<T, boolean>
Inherited from
annotate()
annotate(...
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2010
Parameters
| Parameter | Type |
|---|---|
...args | string[] |
Returns
Relation<T, boolean>
Inherited from
arel()
arel(
aliases?):SelectManager
Defined in: packages/activerecord/lib/relation.ts:2033
Parameters
| Parameter | Type |
|---|---|
aliases? | AliasTracker |
Returns
Inherited from
asJson()
asJson(
options?):Promise<unknown[]>
Defined in: packages/activerecord/lib/relation.ts:2173
Parameters
| Parameter | Type |
|---|---|
options? | SerializeOptions |
Returns
Promise<unknown[]>
Inherited from
asyncAverage()
asyncAverage(
columnName):Promise<unknown>
Defined in: packages/activerecord/lib/relation/calculations.ts:581
Parameters
| Parameter | Type |
|---|---|
columnName | string | ArelNode |
Returns
Promise<unknown>
Inherited from
asyncCount()
asyncCount(
columnName?):Promise<number|Map<unknown,number>>
Defined in: packages/activerecord/lib/relation/calculations.ts:577
Parameters
| Parameter | Type |
|---|---|
columnName? | string |
Returns
Promise<number | Map<unknown, number>>
Inherited from
asyncIds()
asyncIds():
Promise<unknown[]>
Defined in: packages/activerecord/lib/relation/calculations.ts:625
Returns
Promise<unknown[]>
Inherited from
asyncMaximum()
asyncMaximum(
columnName):Promise<unknown>
Defined in: packages/activerecord/lib/relation/calculations.ts:583
Parameters
| Parameter | Type |
|---|---|
columnName | string | ArelNode |
Returns
Promise<unknown>
Inherited from
asyncMinimum()
asyncMinimum(
columnName):Promise<unknown>
Defined in: packages/activerecord/lib/relation/calculations.ts:582
Parameters
| Parameter | Type |
|---|---|
columnName | string | ArelNode |
Returns
Promise<unknown>
Inherited from
asyncPick()
asyncPick(...
columnNames):Promise<unknown>
Defined in: packages/activerecord/lib/relation/calculations.ts:614
Parameters
| Parameter | Type |
|---|---|
...columnNames | (string | string[] | Attribute | SqlLiteral | NamedFunction | Record<string, string | string[]>)[] |
Returns
Promise<unknown>
Inherited from
asyncPluck()
asyncPluck(...
columns):Promise<unknown[]>
Defined in: packages/activerecord/lib/relation/calculations.ts:594
Parameters
| Parameter | Type |
|---|---|
...columns | (string | string[] | Attribute | SqlLiteral | NamedFunction | Record<string, string | string[]>)[] |
Returns
Promise<unknown[]>
Inherited from
asyncSum()
asyncSum(
identityOrColumn?):Promise<number|bigint|Map<unknown,number|bigint>>
Defined in: packages/activerecord/lib/relation/calculations.ts:578
Parameters
| Parameter | Type |
|---|---|
identityOrColumn? | string | number | ArelNode | null |
Returns
Promise<number | bigint | Map<unknown, number | bigint>>
Inherited from
at()
at(
index,length?):Promise<T|T[] |null>
Defined in: packages/activerecord/lib/relation.ts:2155
Parameters
| Parameter | Type |
|---|---|
index | number | Range<number> |
length? | number |
Returns
Promise<T | T[] | null>
Inherited from
average()
average(
column):Promise<unknown>
Defined in: packages/activerecord/lib/relation/calculations.ts:574
Parameters
| Parameter | Type |
|---|---|
column | string | ArelNode |
Returns
Promise<unknown>
Inherited from
bindAttribute()
bindAttribute<
R>(name,value,block):R
Defined in: packages/activerecord/lib/relation.ts:1581
Type Parameters
| Type Parameter |
|---|
R |
Parameters
| Parameter | Type |
|---|---|
name | string |
value | unknown |
block | (attr, bind) => R |
Returns
R
Inherited from
build()
Call Signature
build(
attributes,block?):T[]
Defined in: packages/activerecord/lib/relation.ts:542
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown>[] |
block? | (r) => void |
Returns
T[]
Inherited from
Call Signature
build(
attributes?,block?):T
Defined in: packages/activerecord/lib/relation.ts:543
Parameters
| Parameter | Type |
|---|---|
attributes? | Record<string, unknown> | PermittedAttributes |
block? | (r) => void |
Returns
T
Inherited from
cacheKey()
cacheKey(
timestampColumn?):Promise<string>
Defined in: packages/activerecord/lib/relation.ts:1627
Parameters
| Parameter | Type | Default value |
|---|---|---|
timestampColumn | string | "updated_at" |
Returns
Promise<string>
Inherited from
cacheKeyWithVersion()
cacheKeyWithVersion():
Promise<string>
Defined in: packages/activerecord/lib/relation.ts:1710
Returns
Promise<string>
Inherited from
cacheVersion()
cacheVersion(
timestampColumn?):Promise<string|null>
Defined in: packages/activerecord/lib/relation.ts:1647
Parameters
| Parameter | Type | Default value |
|---|---|---|
timestampColumn | string | "updated_at" |
Returns
Promise<string | null>
Inherited from
calculate()
Call Signature
calculate(
operation,column?):Promise<number|Map<unknown,number>>
Defined in: packages/activerecord/lib/relation/calculations.ts:555
Parameters
| Parameter | Type |
|---|---|
operation | "count" |
column? | string |
Returns
Promise<number | Map<unknown, number>>
Inherited from
Call Signature
calculate(
operation,column):Promise<number|bigint|Map<unknown,number|bigint>>
Defined in: packages/activerecord/lib/relation/calculations.ts:556
Parameters
| Parameter | Type |
|---|---|
operation | "sum" |
column | string | number | ArelNode | null |
Returns
Promise<number | bigint | Map<unknown, number | bigint>>
Inherited from
Call Signature
calculate(
operation,column):Promise<unknown>
Defined in: packages/activerecord/lib/relation/calculations.ts:560
Parameters
| Parameter | Type |
|---|---|
operation | "minimum" | "maximum" | "average" |
column | string |
Returns
Promise<unknown>
Inherited from
Call Signature
calculate(
operation,column?):Promise<unknown>
Defined in: packages/activerecord/lib/relation/calculations.ts:564
Parameters
| Parameter | Type |
|---|---|
operation | string |
column? | string | number | ArelNode | null |
Returns
Promise<unknown>
Inherited from
catch()
catch<
TResult>(onrejected?):Promise<T[] |TResult>
Defined in: packages/activerecord/lib/relation.ts:1857
Type Parameters
| Type Parameter | Default type |
|---|---|
TResult | never |
Parameters
| Parameter | Type |
|---|---|
onrejected? | ((reason) => TResult | PromiseLike<TResult>) | null |
Returns
Promise<T[] | TResult>
No Rails Equivalent
PERMANENT
Inherited from
clone()
clone():
Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:1725
Returns
Relation<T, boolean>
Inherited from
compact()
compact():
Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:2163
Returns
Promise<T[]>
Inherited from
compactBlank()
compactBlank():
Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:684
Returns
Promise<T[]>
Inherited from
count()
count(
column?,block?):Promise<number|Map<unknown,number>>
Defined in: packages/activerecord/lib/relation/calculations.ts:565
Parameters
| Parameter | Type |
|---|---|
column? | string | ArelNode | CountBlock | null |
block? | CountBlock |
Returns
Promise<number | Map<unknown, number>>
Inherited from
create()
Call Signature
create(
attributes,block?):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:562
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown>[] |
block? | (r) => void |
Returns
Promise<T[]>
Inherited from
Call Signature
create(
attributes?,block?):Promise<T>
Defined in: packages/activerecord/lib/relation.ts:563
Parameters
| Parameter | Type |
|---|---|
attributes? | Record<string, unknown> | PermittedAttributes |
block? | (r) => void |
Returns
Promise<T>
Inherited from
createBang()
Call Signature
createBang(
attributes,block?):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:582
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown>[] |
block? | (r) => void |
Returns
Promise<T[]>
Inherited from
Call Signature
createBang(
attributes?,block?):Promise<T>
Defined in: packages/activerecord/lib/relation.ts:583
Parameters
| Parameter | Type |
|---|---|
attributes? | Record<string, unknown> | PermittedAttributes |
block? | (r) => void |
Returns
Promise<T>
Inherited from
createOrFindBy()
createOrFindBy(
attributes,block?):Promise<T|undefined>
Defined in: packages/activerecord/lib/relation.ts:933
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown> |
block? | (r) => void |
Returns
Promise<T | undefined>
Inherited from
createOrFindByBang()
createOrFindByBang(
attributes,block?):Promise<T|undefined>
Defined in: packages/activerecord/lib/relation.ts:958
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown> |
block? | (r) => void |
Returns
Promise<T | undefined>
Inherited from
createWith()
createWith(
value):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2000
Parameters
| Parameter | Type |
|---|---|
value | Record<string, unknown> | Map<string, unknown> | null |
Returns
Relation<T, boolean>
Inherited from
delete()
delete(
idOrArray):Promise<number>
Defined in: packages/activerecord/lib/relation.ts:1455
Parameters
| Parameter | Type |
|---|---|
idOrArray | unknown |
Returns
Promise<number>
Inherited from
deleteAll()
deleteAll():
Promise<number>
Defined in: packages/activerecord/lib/relation.ts:883
Returns
Promise<number>
Inherited from
deleteBy()
deleteBy(
args?):Promise<number>
Defined in: packages/activerecord/lib/relation.ts:1483
Parameters
| Parameter | Type |
|---|---|
args | Record<string, unknown> |
Returns
Promise<number>
Inherited from
destroy()
destroy(
id):Promise<T|T[]>
Defined in: packages/activerecord/lib/relation.ts:1461
Parameters
| Parameter | Type |
|---|---|
id | unknown |
Returns
Promise<T | T[]>
Inherited from
destroyAll()
destroyAll():
Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:874
Returns
Promise<T[]>
Inherited from
destroyBy()
destroyBy(
args?):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:1479
Parameters
| Parameter | Type |
|---|---|
args | Record<string, unknown> |
Returns
Promise<T[]>
Inherited from
detect()
detect(
fn):Promise<T|undefined>
Defined in: packages/activerecord/lib/relation.ts:662
Parameters
| Parameter | Type |
|---|---|
fn | (record) => unknown |
Returns
Promise<T | undefined>
Inherited from
difference()
difference(
other):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:2159
Parameters
| Parameter | Type |
|---|---|
other | T[] |
Returns
Promise<T[]>
Inherited from
distinct()
distinct(
value?):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2080
Parameters
| Parameter | Type |
|---|---|
value? | boolean |
Returns
Relation<T, boolean>
Inherited from
drop()
drop(
n):T[] |Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:2148
Parameters
| Parameter | Type |
|---|---|
n | number |
Returns
T[] | Promise<T[]>
Inherited from
each()
each(
fn):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:2153
Parameters
| Parameter | Type |
|---|---|
fn | (record, index) => unknown |
Returns
Promise<T[]>
Inherited from
eagerLoad()
eagerLoad(...
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2013
Parameters
| Parameter | Type |
|---|---|
...args | AssociationSpec[] |
Returns
Relation<T, boolean>
Inherited from
encodeWith()
encodeWith(
coder):void
Defined in: packages/activerecord/lib/relation.ts:608
Parameters
| Parameter | Type |
|---|---|
coder | Coder |
Returns
void
Inherited from
equals()
equals(
other):Promise<boolean|undefined>
Defined in: packages/activerecord/lib/relation.ts:1487
Parameters
| Parameter | Type |
|---|---|
other | unknown |
Returns
Promise<boolean | undefined>
Inherited from
except()
except<
A>(...skips):Relation<T,stringextendsA[number] ?boolean:"group"extendsA[number] ?false:boolean>
Defined in: packages/activerecord/lib/relation.ts:2088
Type Parameters
| Type Parameter |
|---|
A extends ExceptSkip[] |
Parameters
| Parameter | Type |
|---|---|
...skips | A |
Returns
Relation<T, string extends A[number] ? boolean : "group" extends A[number] ? false : boolean>
Inherited from
excluding()
excluding(...
records):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2069
Parameters
| Parameter | Type |
|---|---|
...records | unknown[] |
Returns
Relation<T, boolean>
Inherited from
explain()
explain(...
options):ExplainProxy<T>
Defined in: packages/activerecord/lib/relation.ts:835
Parameters
| Parameter | Type |
|---|---|
...options | string[] |
Returns
ExplainProxy<T>
Inherited from
extending()
Call Signature
extending<
M>(mod):Relation<T,boolean> &M
Defined in: packages/activerecord/lib/relation.ts:2002
Type Parameters
| Type Parameter |
|---|
M extends Record<string, (...args) => unknown> |
Parameters
| Parameter | Type |
|---|---|
mod | M |
Returns
Relation<T, boolean> & M
Inherited from
Call Signature
extending<
M>(mod):Relation<T,boolean> &Partial<M>
Defined in: packages/activerecord/lib/relation.ts:2003
Type Parameters
| Type Parameter |
|---|
M extends Record<string, (...args) => unknown> |
Parameters
| Parameter | Type |
|---|---|
mod | M | undefined |
Returns
Relation<T, boolean> & Partial<M>
Inherited from
Call Signature
extending(...
modules):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2006
Parameters
| Parameter | Type |
|---|---|
...modules | object[] |
Returns
Relation<T, boolean>
Inherited from
Call Signature
extending(
block):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2007
Parameters
| Parameter | Type |
|---|---|
block | (mod) => void |
Returns
Relation<T, boolean>
Inherited from
Call Signature
extending():
Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2008
Returns
Relation<T, boolean>
Inherited from
extractAssociated()
extractAssociated(
association):Promise<Base[]>
Defined in: packages/activerecord/lib/relation.ts:2015
Parameters
| Parameter | Type |
|---|---|
association | string |
Returns
Promise<Base[]>
Inherited from
fifth()
fifth():
Promise<T|null>
Defined in: packages/activerecord/lib/relation.ts:1968
Returns
Promise<T | null>
Inherited from
fifthBang()
fifthBang():
Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1975
Returns
Promise<T>
Inherited from
finally()
finally(
onfinally?):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:1861
Parameters
| Parameter | Type |
|---|---|
onfinally? | (() => void) | null |
Returns
Promise<T[]>
No Rails Equivalent
PERMANENT
Inherited from
find()
Call Signature
find(
block):Promise<T|null>
Defined in: packages/activerecord/lib/relation.ts:1947
Parameters
| Parameter | Type |
|---|---|
block | (record) => unknown |
Returns
Promise<T | null>
Inherited from
Call Signature
find(
ids):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:1948
Parameters
| Parameter | Type |
|---|---|
ids | unknown[] |
Returns
Promise<T[]>
Inherited from
Call Signature
find(
id):Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1949
Parameters
| Parameter | Type |
|---|---|
id | unknown |
Returns
Promise<T>
Inherited from
Call Signature
find(...
ids):Promise<T|T[]>
Defined in: packages/activerecord/lib/relation.ts:1950
Parameters
| Parameter | Type |
|---|---|
...ids | unknown[] |
Returns
Promise<T | T[]>
Inherited from
findAll()
findAll(
block):T[] |Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:2147
Parameters
| Parameter | Type |
|---|---|
block | (record) => unknown |
Returns
T[] | Promise<T[]>
Inherited from
findBy()
Call Signature
findBy(
arg):Promise<T|null>
Defined in: packages/activerecord/lib/relation.ts:1951
Parameters
| Parameter | Type |
|---|---|
arg | Record<string, unknown> |
Returns
Promise<T | null>
Inherited from
Call Signature
findBy(
arg):Promise<T|null>
Defined in: packages/activerecord/lib/relation.ts:1952
Parameters
| Parameter | Type |
|---|---|
arg | Map<unknown, unknown> |
Returns
Promise<T | null>
Inherited from
findByBang()
findByBang(
arg):Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1953
Parameters
| Parameter | Type |
|---|---|
arg | Record<string, unknown> |
Returns
Promise<T>
Inherited from
findByTokenFor()
findByTokenFor(...
args):Promise
Defined in: packages/activerecord/lib/token-for.ts:76
Parameters
| Parameter | Type |
|---|---|
...args | [string, string] |
Returns
Promise
Inherited from
findByTokenForBang()
findByTokenForBang(...
args):Promise
Defined in: packages/activerecord/lib/token-for.ts:84
Parameters
| Parameter | Type |
|---|---|
...args | [string, string] |
Returns
Promise
Inherited from
findEach()
Call Signature
findEach(
opts,block):Promise<null>
Defined in: packages/activerecord/lib/relation.ts:2133
Parameters
| Parameter | Type |
|---|---|
opts | FindEachOptions |
block | (record) => void | Promise<void> |
Returns
Promise<null>
Inherited from
Call Signature
findEach(
opts?):AsyncGenerator<T,any,any> & {size:Promise<number>; }
Defined in: packages/activerecord/lib/relation.ts:2134
Parameters
| Parameter | Type |
|---|---|
opts? | FindEachOptions |
Returns
AsyncGenerator<T, any, any> & { size: Promise<number>; }
Inherited from
findInBatches()
Call Signature
findInBatches(
opts,block):Promise<null>
Defined in: packages/activerecord/lib/relation.ts:2135
Parameters
| Parameter | Type |
|---|---|
opts | FindEachOptions |
block | (batch) => void | Promise<void> |
Returns
Promise<null>
Inherited from
Call Signature
findInBatches(
opts?):AsyncGenerator<T[],any,any> & {size:Promise<number>; }
Defined in: packages/activerecord/lib/relation.ts:2136
Parameters
| Parameter | Type |
|---|---|
opts? | FindEachOptions |
Returns
AsyncGenerator<T[], any, any> & { size: Promise<number>; }
Inherited from
findOrCreateBy()
findOrCreateBy(
attributes,block?):Promise<T|undefined>
Defined in: packages/activerecord/lib/relation.ts:919
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown> |
block? | (r) => void |
Returns
Promise<T | undefined>
Inherited from
findOrCreateByBang()
findOrCreateByBang(
attributes,block?):Promise<T|undefined>
Defined in: packages/activerecord/lib/relation.ts:926
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown> |
block? | (r) => void |
Returns
Promise<T | undefined>
Inherited from
findOrInitializeBy()
findOrInitializeBy(
attributes,block?):Promise<T>
Defined in: packages/activerecord/lib/relation.ts:983
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown> |
block? | (r) => void | Promise<void> |
Returns
Promise<T>
Inherited from
findSigned()
findSigned(...
args):Promise
Defined in: packages/activerecord/lib/signed-id.ts:87
Parameters
| Parameter | Type |
|---|---|
...args | [string, { purpose?: string; }] |
Returns
Promise
Inherited from
findSignedBang()
findSignedBang(...
args):Promise
Defined in: packages/activerecord/lib/signed-id.ts:94
Parameters
| Parameter | Type |
|---|---|
...args | [string, { purpose?: string; }] |
Returns
Promise
Inherited from
findSoleBy()
findSoleBy(...
conditions):Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1954
Parameters
| Parameter | Type |
|---|---|
...conditions | unknown[] |
Returns
Promise<T>
Inherited from
first()
Call Signature
first():
Promise<T|null>
Defined in: packages/activerecord/lib/disable-joins-association-relation.ts:32
Returns
Promise<T | null>
Missing Rails Call
limit — PERMANENT
Overrides
Call Signature
first(
n):Promise<T[]>
Defined in: packages/activerecord/lib/disable-joins-association-relation.ts:33
Parameters
| Parameter | Type |
|---|---|
n | number |
Returns
Promise<T[]>
Missing Rails Call
limit — PERMANENT
Overrides
firstBang()
firstBang():
Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1957
Returns
Promise<T>
Inherited from
firstOrCreate()
firstOrCreate(
attributes?,block?):Promise<T>
Defined in: packages/activerecord/lib/relation.ts:993
Parameters
| Parameter | Type |
|---|---|
attributes? | Record<string, unknown> |
block? | (r) => void |
Returns
Promise<T>
Inherited from
firstOrCreateBang()
firstOrCreateBang(
attributes?,block?):Promise<T>
Defined in: packages/activerecord/lib/relation.ts:997
Parameters
| Parameter | Type |
|---|---|
attributes? | Record<string, unknown> |
block? | (r) => void |
Returns
Promise<T>
Inherited from
firstOrInitialize()
firstOrInitialize(
attributes?,block?):Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1004
Parameters
| Parameter | Type |
|---|---|
attributes? | Record<string, unknown> |
block? | (r) => void | Promise<void> |
Returns
Promise<T>
Inherited from
fortyTwo()
fortyTwo():
Promise<T|null>
Defined in: packages/activerecord/lib/relation.ts:1969
Returns
Promise<T | null>
Inherited from
fortyTwoBang()
fortyTwoBang():
Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1976
Returns
Promise<T>
Inherited from
fourth()
fourth():
Promise<T|null>
Defined in: packages/activerecord/lib/relation.ts:1967
Returns
Promise<T | null>
Inherited from
fourthBang()
fourthBang():
Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1974
Returns
Promise<T>
Inherited from
from()
from(
value,subqueryName?):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2001
Parameters
| Parameter | Type |
|---|---|
value | string | ArelNode | Relation<any, boolean> |
subqueryName? | string |
Returns
Relation<T, boolean>
Inherited from
group()
group(...
args):Relation<T,true>
Defined in: packages/activerecord/lib/relation.ts:2052
Parameters
| Parameter | Type |
|---|---|
...args | (string | ArelNode)[] |
Returns
Relation<T, true>
Inherited from
groupBy()
groupBy<
K>(fn):Promise<Hash<K,T[]>>
Defined in: packages/activerecord/lib/relation.ts:674
Type Parameters
| Type Parameter |
|---|
K |
Parameters
| Parameter | Type |
|---|---|
fn | (record) => K |
Returns
Promise<Hash<K, T[]>>
Inherited from
having()
Call Signature
having(
condition, ...binds):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2071
Parameters
| Parameter | Type |
|---|---|
condition | string | SqlLiteral |
...binds | unknown[] |
Returns
Relation<T, boolean>
Inherited from
Call Signature
having(
condition):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2072
Parameters
| Parameter | Type |
|---|---|
condition | Record<string, unknown> |
Returns
Relation<T, boolean>
Inherited from
Call Signature
having(
condition):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2073
Parameters
| Parameter | Type |
|---|---|
condition | Node |
Returns
Relation<T, boolean>
Inherited from
Call Signature
having(
condition, ...binds):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2074
Parameters
| Parameter | Type |
|---|---|
condition | string | Record<string, unknown> | Node | SqlLiteral |
...binds | unknown[] |
Returns
Relation<T, boolean>
Inherited from
ids()
ids():
Promise<unknown[]>
Defined in: packages/activerecord/lib/disable-joins-association-relation.ts:21
Returns
Promise<unknown[]>
Overrides
inBatches()
Call Signature
inBatches(
opts,block):Promise<null>
Defined in: packages/activerecord/lib/relation.ts:2137
Parameters
| Parameter | Type |
|---|---|
opts | InBatchesOptions |
block | (relation) => void | Promise<void> |
Returns
Promise<null>
Inherited from
Call Signature
inBatches(
opts?):BatchEnumerator<LoadedRelation<Relation<T,boolean>>>
Defined in: packages/activerecord/lib/relation.ts:2141
Parameters
| Parameter | Type |
|---|---|
opts? | InBatchesOptions |
Returns
BatchEnumerator<LoadedRelation<Relation<T, boolean>>>
Inherited from
includes()
includes(...
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2011
Parameters
| Parameter | Type |
|---|---|
...args | AssociationSpec[] |
Returns
Relation<T, boolean>
Inherited from
index()
index(
valueOrFn):Promise<number|null>
Defined in: packages/activerecord/lib/relation.ts:2164
Parameters
| Parameter | Type |
|---|---|
valueOrFn | T | ((record) => unknown) |
Returns
Promise<number | null>
Inherited from
indexBy()
Call Signature
indexBy<
K>(fn):Promise<Record<K,T>>
Defined in: packages/activerecord/lib/relation.ts:678
Type Parameters
| Type Parameter |
|---|
K extends string |
Parameters
| Parameter | Type |
|---|---|
fn | (record) => K |
Returns
Promise<Record<K, T>>
Inherited from
Call Signature
indexBy<
K>(fn):Promise<Hash<K,T>>
Defined in: packages/activerecord/lib/relation.ts:679
Type Parameters
| Type Parameter |
|---|
K |
Parameters
| Parameter | Type |
|---|---|
fn | (record) => K |
Returns
Promise<Hash<K, T>>
Inherited from
inGroups()
inGroups(
number,fillWith?):Promise<(false|T|null)[][]>
Defined in: packages/activerecord/lib/relation.ts:2170
Parameters
| Parameter | Type |
|---|---|
number | number |
fillWith? | false | T | null |
Returns
Promise<(false | T | null)[][]>
Inherited from
inGroupsOf()
inGroupsOf(
number,fillWith?):Promise<(false|T|null)[][]>
Defined in: packages/activerecord/lib/relation.ts:2171
Parameters
| Parameter | Type |
|---|---|
number | number |
fillWith? | false | T | null |
Returns
Promise<(false | T | null)[][]>
Inherited from
initializeCopy()
initializeCopy(
other):this
Defined in: packages/activerecord/lib/relation.ts:1718
Parameters
| Parameter | Type |
|---|---|
other | Relation<T, boolean> |
Returns
this
Inherited from
inOrderOf()
inOrderOf(
column,values,filter?):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2055
Parameters
| Parameter | Type |
|---|---|
column | string | ArelNode |
values | unknown[] |
filter? | boolean |
Returns
Relation<T, boolean>
Inherited from
insert()
insert(
attributes,options?):Promise<Result>
Defined in: packages/activerecord/lib/relation.ts:1394
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown> |
options? | { returning?: false | SqlLiteral | `:${string}` | `:${string}`[]; uniqueBy?: string | string[]; } |
options.returning? | false | SqlLiteral | `:${string}` | `:${string}`[] |
options.uniqueBy? | string | string[] |
Returns
Promise<Result>
Inherited from
insertAll()
insertAll(
attributes,options?):Promise<Result>
Defined in: packages/activerecord/lib/relation.ts:1014
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown>[] |
options? | { recordTimestamps?: boolean; returning?: false | SqlLiteral | `:${string}` | `:${string}`[]; uniqueBy?: string | string[]; } |
options.recordTimestamps? | boolean |
options.returning? | false | SqlLiteral | `:${string}` | `:${string}`[] |
options.uniqueBy? | string | string[] |
Returns
Promise<Result>
Inherited from
insertAllBang()
insertAllBang(
attributes,options?):Promise<Result>
Defined in: packages/activerecord/lib/relation.ts:1408
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown>[] |
options? | Pick<InsertAllOptions, "recordTimestamps" | "returning"> |
Returns
Promise<Result>
Inherited from
insertBang()
insertBang(
attributes,options?):Promise<Result>
Defined in: packages/activerecord/lib/relation.ts:1401
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown> |
options? | Pick<InsertAllOptions, "recordTimestamps" | "returning"> |
Returns
Promise<Result>
Inherited from
inspect()
inspect():
string|Promise<string>
Defined in: packages/activerecord/lib/relation.ts:417
Returns
string | Promise<string>
Inherited from
intersection()
intersection(
other):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:2156
Parameters
| Parameter | Type |
|---|---|
other | T[] |
Returns
Promise<T[]>
Inherited from
invertWhere()
invertWhere():
Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2065
Returns
Relation<T, boolean>
Inherited from
isAny()
isAny(...
args):Promise<boolean>
Defined in: packages/activerecord/lib/relation.ts:627
Parameters
| Parameter | Type |
|---|---|
...args | EnumerablePattern<T>[] |
Returns
Promise<boolean>
Inherited from
isBlank()
isBlank():
Promise<boolean>
Defined in: packages/activerecord/lib/relation.ts:658
Returns
Promise<boolean>
Inherited from
isEmpty()
isEmpty():
Promise<boolean>
Defined in: packages/activerecord/lib/relation.ts:617
Returns
Promise<boolean>
Inherited from
isExclude()
isExclude(
object):Promise<boolean>
Defined in: packages/activerecord/lib/relation.ts:688
Parameters
| Parameter | Type |
|---|---|
object | T |
Returns
Promise<boolean>
Inherited from
isExists()
isExists(
conditions?):Promise<boolean>
Defined in: packages/activerecord/lib/relation.ts:1979
Parameters
| Parameter | Type |
|---|---|
conditions? | unknown |
Returns
Promise<boolean>
Inherited from
isInclude()
isInclude(
record):Promise<boolean>
Defined in: packages/activerecord/lib/relation.ts:1980
Parameters
| Parameter | Type |
|---|---|
record | T |
Returns
Promise<boolean>
Inherited from
isIntersect()
isIntersect(
other):Promise<boolean>
Defined in: packages/activerecord/lib/relation.ts:2161
Parameters
| Parameter | Type |
|---|---|
other | T[] |
Returns
Promise<boolean>
Inherited from
isMany()
isMany(
predicate?):Promise<boolean>
Defined in: packages/activerecord/lib/relation.ts:638
Parameters
| Parameter | Type |
|---|---|
predicate? | (record) => boolean |
Returns
Promise<boolean>
Inherited from
isMember()
isMember(
record):Promise<boolean>
Defined in: packages/activerecord/lib/relation.ts:1981
Parameters
| Parameter | Type |
|---|---|
record | T |
Returns
Promise<boolean>
Inherited from
isNone()
isNone(...
args):Promise<boolean>
Defined in: packages/activerecord/lib/relation.ts:1521
Parameters
| Parameter | Type |
|---|---|
...args | EnumerablePattern<T>[] |
Returns
Promise<boolean>
Inherited from
isNullRelation()
isNullRelation():
boolean
Defined in: packages/activerecord/lib/relation.ts:1851
Returns
boolean
Inherited from
isOne()
isOne(...
args):Promise<boolean>
Defined in: packages/activerecord/lib/relation.ts:646
Parameters
| Parameter | Type |
|---|---|
...args | EnumerablePattern<T>[] |
Returns
Promise<boolean>
Inherited from
isStructurallyCompatible()
isStructurallyCompatible(
other):boolean
Defined in: packages/activerecord/lib/relation.ts:2066
Parameters
| Parameter | Type |
|---|---|
other | Relation<T, boolean> |
Returns
boolean
Inherited from
Relation.isStructurallyCompatible
join()
join(
separator?):Promise<string>
Defined in: packages/activerecord/lib/relation.ts:2154
Parameters
| Parameter | Type |
|---|---|
separator? | string |
Returns
Promise<string>
Inherited from
joins()
Call Signature
joins(...
nodes):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2027
Parameters
| Parameter | Type |
|---|---|
...nodes | Join[] |
Returns
Relation<T, boolean>
Inherited from
Call Signature
joins(
specArray):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2028
Parameters
| Parameter | Type |
|---|---|
specArray | JoinSpec[] |
Returns
Relation<T, boolean>
Inherited from
Call Signature
joins(
hashSpec):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2029
Parameters
| Parameter | Type |
|---|---|
hashSpec | Record<string, AssociationSpec | AssociationSpec[]> |
Returns
Relation<T, boolean>
Inherited from
Call Signature
joins(...
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2030
Parameters
| Parameter | Type |
|---|---|
...args | JoinSpec[] |
Returns
Relation<T, boolean>
Inherited from
last()
Call Signature
last():
Promise<T|null>
Defined in: packages/activerecord/lib/relation.ts:1958
Returns
Promise<T | null>
Inherited from
Call Signature
last(
n):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:1959
Parameters
| Parameter | Type |
|---|---|
n | number |
Returns
Promise<T[]>
Inherited from
lastBang()
lastBang():
Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1960
Returns
Promise<T>
Inherited from
leftJoins()
leftJoins(...
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2032
Parameters
| Parameter | Type |
|---|---|
...args | (AssociationSpec | AssociationSpec[])[] |
Returns
Relation<T, boolean>
Inherited from
leftOuterJoins()
leftOuterJoins(...
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2031
Parameters
| Parameter | Type |
|---|---|
...args | (AssociationSpec | AssociationSpec[])[] |
Returns
Relation<T, boolean>
Inherited from
length()
length():
Promise<number>
Defined in: packages/activerecord/lib/relation.ts:2152
Returns
Promise<number>
Inherited from
limit()
limit(
value):Promise<T[]>
Defined in: packages/activerecord/lib/disable-joins-association-relation.ts:26
Parameters
| Parameter | Type |
|---|---|
value | number | null |
Returns
Promise<T[]>
Overrides
load()
load(
block?):Promise<LoadedRelation<DisableJoinsAssociationRelation<T>>>
Defined in: packages/activerecord/lib/disable-joins-association-relation.ts:43
Parameters
| Parameter | Type |
|---|---|
block? | (record) => void |
Returns
Promise<LoadedRelation<DisableJoinsAssociationRelation<T>>>
Overrides
loadAsync()
loadAsync():
Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:499
Returns
Relation<T, boolean>
Invented Arm
synchronize — CONVERGEABLE load-async-null-executor-arm-floats-its-load-under-the-adapter-lock
Invented Arm
if — CONVERGEABLE load-async-null-executor-arm-floats-its-load-under-the-adapter-lock
Invented Arm
_loadSerializedAttributes — PERMANENT
Inherited from
loadRecords()
protectedloadRecords(records):void
Defined in: packages/activerecord/lib/relation.ts:1740
Parameters
| Parameter | Type |
|---|---|
records | T[] |
Returns
void
Inherited from
lock()
lock(
locks?):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:1992
Parameters
| Parameter | Type |
|---|---|
locks? | string | boolean | SqlLiteral | null |
Returns
Relation<T, boolean>
Inherited from
map()
map<
R>(block):R[] |Promise<R[]>
Defined in: packages/activerecord/lib/relation.ts:2146
Type Parameters
| Type Parameter |
|---|
R |
Parameters
| Parameter | Type |
|---|---|
block | (record) => R |
Returns
R[] | Promise<R[]>
Inherited from
maximum()
Call Signature
maximum<
K>(columnName):Promise<T[K] |Map<unknown,T[K]> |null>
Defined in: packages/activerecord/lib/relation.ts:1993
Type Parameters
| Type Parameter |
|---|
K extends string |
Parameters
| Parameter | Type |
|---|---|
columnName | K |
Returns
Promise<T[K] | Map<unknown, T[K]> | null>
Inherited from
Call Signature
maximum(
columnName):Promise<unknown>
Defined in: packages/activerecord/lib/relation.ts:1996
Parameters
| Parameter | Type |
|---|---|
columnName | string | ArelNode |
Returns
Promise<unknown>
Inherited from
merge()
Call Signature
merge<
U,H>(other):Relation<T, [H] extends [true] ?true:boolean|H>
Defined in: packages/activerecord/lib/relation.ts:2083
Type Parameters
| Type Parameter |
|---|
U extends Base |
H extends boolean |
Parameters
| Parameter | Type |
|---|---|
other | Relation<U, H> |
Returns
Relation<T, [H] extends [true] ? true : boolean | H>
Inherited from
Call Signature
merge(
other):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2086
Parameters
| Parameter | Type |
|---|---|
other | Partial<Record<ValueMethod, unknown>> |
Returns
Relation<T, boolean>
Inherited from
mergeBang()
mergeBang(
other):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2087
Parameters
| Parameter | Type |
|---|---|
other | any |
Returns
Relation<T, boolean>
Inherited from
minimum()
minimum(
column):Promise<unknown>
Defined in: packages/activerecord/lib/relation/calculations.ts:575
Parameters
| Parameter | Type |
|---|---|
column | string | ArelNode |
Returns
Promise<unknown>
Inherited from
new()
Call Signature
new(
attrs,block?):T[]
Defined in: packages/activerecord/lib/relation.ts:1346
Parameters
| Parameter | Type |
|---|---|
attrs | Record<string, unknown>[] |
block? | (r) => void |
Returns
T[]
Inherited from
Call Signature
new(
attrs?,block?):T
Defined in: packages/activerecord/lib/relation.ts:1347
Parameters
| Parameter | Type |
|---|---|
attrs? | Record<string, unknown> | PermittedAttributes |
block? | (r) => void |
Returns
T
Inherited from
none()
none():
Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:1997
Returns
Relation<T, boolean>
Inherited from
offset()
offset(
value):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2079
Parameters
| Parameter | Type |
|---|---|
value | string | number | null |
Returns
Relation<T, boolean>
Inherited from
only()
only<
A>(...onlies):Relation<T,stringextendsA[number] ?boolean:"group"extendsA[number] ?boolean:false>
Defined in: packages/activerecord/lib/relation.ts:2091
Type Parameters
| Type Parameter |
|---|
A extends ExceptSkip[] |
Parameters
| Parameter | Type |
|---|---|
...onlies | A |
Returns
Relation<T, string extends A[number] ? boolean : "group" extends A[number] ? boolean : false>
Inherited from
optimizerHints()
optimizerHints(...
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2009
Parameters
| Parameter | Type |
|---|---|
...args | string[] |
Returns
Relation<T, boolean>
Inherited from
or()
or(
other):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2068
Parameters
| Parameter | Type |
|---|---|
other | Relation<T, boolean> |
Returns
Relation<T, boolean>
Inherited from
order()
order(...
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2054
Parameters
| Parameter | Type |
|---|---|
...args | OrderArg[] |
Returns
Relation<T, boolean>
Inherited from
pick()
pick(...
columnNames):Promise<unknown>
Defined in: packages/activerecord/lib/relation/calculations.ts:604
Parameters
| Parameter | Type |
|---|---|
...columnNames | (string | string[] | Attribute | SqlLiteral | NamedFunction | Record<string, string | string[]>)[] |
Returns
Promise<unknown>
Inherited from
pluck()
Call Signature
pluck<
K>(column):Promise<T[K][]>
Defined in: packages/activerecord/lib/relation.ts:1942
Type Parameters
| Type Parameter |
|---|
K extends string |
Parameters
| Parameter | Type |
|---|---|
column | K |
Returns
Promise<T[K][]>
Inherited from
Call Signature
pluck<
K>(...columns):Promise<PluckedRow<T,K>[]>
Defined in: packages/activerecord/lib/relation.ts:1943
Type Parameters
| Type Parameter |
|---|
K extends [PluckColumn<T>, PluckColumn<T>, ...PluckColumn<T>[]] |
Parameters
| Parameter | Type |
|---|---|
...columns | K |
Returns
Promise<PluckedRow<T, K>[]>
Inherited from
Call Signature
pluck(...
columns):Promise<unknown[]>
Defined in: packages/activerecord/lib/relation.ts:1946
Parameters
| Parameter | Type |
|---|---|
...columns | (string | string[] | Attribute | SqlLiteral | NamedFunction | Record<string, string | string[]>)[] |
Returns
Promise<unknown[]>
Inherited from
plus()
plus(
other):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:2158
Parameters
| Parameter | Type |
|---|---|
other | T[] |
Returns
Promise<T[]>
Inherited from
preload()
preload(...
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2014
Parameters
| Parameter | Type |
|---|---|
...args | AssociationSpec[] |
Returns
Relation<T, boolean>
Inherited from
preloadAssociations()
preloadAssociations(
records):Promise<void>
Defined in: packages/activerecord/lib/relation.ts:1331
Parameters
| Parameter | Type |
|---|---|
records | T[] |
Returns
Promise<void>
Inherited from
prettyPrint()
prettyPrint(
pp):Promise<void>
Defined in: packages/activerecord/lib/relation.ts:438
Parameters
| Parameter | Type |
|---|---|
pp | PP |
Returns
Promise<void>
Inherited from
raiseRecordNotFoundExceptionBang()
raiseRecordNotFoundExceptionBang(
ids?,resultSize?,expectedSize?,key?,notFoundIds?):never
Defined in: packages/activerecord/lib/relation.ts:1982
Parameters
| Parameter | Type |
|---|---|
ids? | unknown |
resultSize? | number |
expectedSize? | number |
key? | string | string[] |
notFoundIds? | unknown[] |
Returns
never
Inherited from
Relation.raiseRecordNotFoundExceptionBang
readonly()
readonly(
value?):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:1998
Parameters
| Parameter | Type |
|---|---|
value? | boolean |
Returns
Relation<T, boolean>
Inherited from
records()
records():
Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:485
Returns
Promise<T[]>
Inherited from
references()
references(...
tableNames):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2016
Parameters
| Parameter | Type |
|---|---|
...tableNames | (string | SqlLiteral)[] |
Returns
Relation<T, boolean>
Inherited from
regroup()
regroup(...
args):Relation<T,true>
Defined in: packages/activerecord/lib/relation.ts:2053
Parameters
| Parameter | Type |
|---|---|
...args | string[] |
Returns
Relation<T, true>
Inherited from
reject()
reject(
fn):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:666
Parameters
| Parameter | Type |
|---|---|
fn | (record) => boolean |
Returns
Promise<T[]>
Inherited from
reload()
reload():
Promise<LoadedRelation<DisableJoinsAssociationRelation<T>>>
Defined in: packages/activerecord/lib/relation.ts:479
Returns
Promise<LoadedRelation<DisableJoinsAssociationRelation<T>>>
Inherited from
reorder()
reorder(...
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2056
Parameters
| Parameter | Type |
|---|---|
...args | OrderArg[] |
Returns
Relation<T, boolean>
Inherited from
reselect()
reselect(...
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2049
Parameters
| Parameter | Type |
|---|---|
...args | (string | Record<string, unknown> | ArelNode | readonly string | ArelNode[])[] |
Returns
Relation<T, boolean>
Inherited from
reset()
reset():
this
Defined in: packages/activerecord/lib/relation.ts:461
Returns
this
Inherited from
reverse()
reverse():
Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:2162
Returns
Promise<T[]>
Inherited from
reverseOrder()
reverseOrder():
Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2081
Returns
Relation<T, boolean>
Inherited from
rewhere()
rewhere(
conditions):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2064
Parameters
| Parameter | Type |
|---|---|
conditions | Record<string, unknown> | Map<string, unknown> | null |
Returns
Relation<T, boolean>
Inherited from
rindex()
rindex(
valueOrFn):Promise<number|null>
Defined in: packages/activerecord/lib/relation.ts:2165
Parameters
| Parameter | Type |
|---|---|
valueOrFn | T | ((record) => unknown) |
Returns
Promise<number | null>
Inherited from
rotate()
rotate(
count?):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:2167
Parameters
| Parameter | Type |
|---|---|
count? | number |
Returns
Promise<T[]>
Inherited from
sample()
sample(
n?):Promise<T|T[] |null>
Defined in: packages/activerecord/lib/relation.ts:2166
Parameters
| Parameter | Type |
|---|---|
n? | number |
Returns
Promise<T | T[] | null>
Inherited from
sanitizeSqlLike()
sanitizeSqlLike(
value,escapeChar?):string
Defined in: packages/activerecord/lib/relation.ts:2189
Parameters
| Parameter | Type |
|---|---|
value | string |
escapeChar? | string |
Returns
string
Inherited from
scopeForCreate()
scopeForCreate():
Record<string,unknown>
Defined in: packages/activerecord/lib/relation.ts:1049
Returns
Record<string, unknown>
Inherited from
scoping()
Call Signature
scoping<
R>(callback):R
Defined in: packages/activerecord/lib/relation.ts:1601
Type Parameters
| Type Parameter |
|---|
R |
Parameters
| Parameter | Type |
|---|---|
callback | () => R |
Returns
R
Inherited from
Call Signature
scoping<
R>(options,callback):R
Defined in: packages/activerecord/lib/relation.ts:1602
Type Parameters
| Type Parameter |
|---|
R |
Parameters
| Parameter | Type |
|---|---|
options | { allQueries?: boolean | null; } |
options.allQueries? | boolean | null |
callback | () => R |
Returns
R
Inherited from
second()
second():
Promise<T|null>
Defined in: packages/activerecord/lib/relation.ts:1965
Returns
Promise<T | null>
Inherited from
secondBang()
secondBang():
Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1972
Returns
Promise<T>
Inherited from
secondToLast()
secondToLast():
Promise<T|null>
Defined in: packages/activerecord/lib/relation.ts:1970
Returns
Promise<T | null>
Inherited from
secondToLastBang()
secondToLastBang():
Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1977
Returns
Promise<T>
Inherited from
select()
Call Signature
select(
fn):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:2047
Parameters
| Parameter | Type |
|---|---|
fn | (record) => boolean |
Returns
Promise<T[]>
Inherited from
Call Signature
select(...
fields):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2048
Parameters
| Parameter | Type |
|---|---|
...fields | SelectArg[] |
Returns
Relation<T, boolean>
Inherited from
shuffle()
shuffle():
Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:2168
Returns
Promise<T[]>
Inherited from
size()
size():
Promise<number>
Defined in: packages/activerecord/lib/relation.ts:612
Returns
Promise<number>
Inherited from
slice()
slice(
index,length?):T|T[] |Promise<T|T[] |null> |null
Defined in: packages/activerecord/lib/relation.ts:2160
Parameters
| Parameter | Type |
|---|---|
index | number | Range<number> |
length? | number |
Returns
T | T[] | Promise<T | T[] | null> | null
Inherited from
sole()
sole():
Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1961
Returns
Promise<T>
Inherited from
sortBy()
sortBy(
key):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:670
Parameters
| Parameter | Type |
|---|---|
key | (record) => any |
Returns
Promise<T[]>
Inherited from
spawn()
spawn():
Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2082
Returns
Relation<T, boolean>
Inherited from
split()
split(
valueOrFn):Promise<T[][]>
Defined in: packages/activerecord/lib/relation.ts:2169
Parameters
| Parameter | Type |
|---|---|
valueOrFn | T | ((record) => boolean) |
Returns
Promise<T[][]>
Inherited from
strictLoading()
strictLoading(
value?):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:1999
Parameters
| Parameter | Type |
|---|---|
value? | boolean |
Returns
Relation<T, boolean>
Inherited from
sum()
Call Signature
sum(
block):Promise<number|bigint>
Defined in: packages/activerecord/lib/relation/calculations.ts:569
Parameters
| Parameter | Type |
|---|---|
block | SumBlock |
Returns
Promise<number | bigint>
Inherited from
Call Signature
sum(
initialValue,block):Promise<number|bigint>
Defined in: packages/activerecord/lib/relation/calculations.ts:570
Parameters
| Parameter | Type |
|---|---|
initialValue | string | number |
block | SumBlock |
Returns
Promise<number | bigint>
Inherited from
Call Signature
sum(
initialValueOrColumn?):Promise<number|bigint|Map<unknown,number|bigint>>
Defined in: packages/activerecord/lib/relation/calculations.ts:571
Parameters
| Parameter | Type |
|---|---|
initialValueOrColumn? | string | number | ArelNode | null |
Returns
Promise<number | bigint | Map<unknown, number | bigint>>
Inherited from
take()
Call Signature
take():
Promise<T|null>
Defined in: packages/activerecord/lib/relation.ts:1962
Returns
Promise<T | null>
Inherited from
Call Signature
take(
limit):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:1963
Parameters
| Parameter | Type |
|---|---|
limit | number |
Returns
Promise<T[]>
Inherited from
takeBang()
takeBang():
Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1964
Returns
Promise<T>
Inherited from
then()
then<
TResult1,TResult2>(onfulfilled?,onrejected?):Promise<TResult1|TResult2>
Defined in: packages/activerecord/lib/relation.ts:1852
Type Parameters
| Type Parameter | Default type |
|---|---|
TResult1 | T[] |
TResult2 | never |
Parameters
| Parameter | Type |
|---|---|
onfulfilled? | ((value) => TResult1 | PromiseLike<TResult1>) | null |
onrejected? | ((reason) => TResult2 | PromiseLike<TResult2>) | null |
Returns
Promise<TResult1 | TResult2>
Inherited from
third()
third():
Promise<T|null>
Defined in: packages/activerecord/lib/relation.ts:1966
Returns
Promise<T | null>
Inherited from
thirdBang()
thirdBang():
Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1973
Returns
Promise<T>
Inherited from
thirdToLast()
thirdToLast():
Promise<T|null>
Defined in: packages/activerecord/lib/relation.ts:1971
Returns
Promise<T | null>
Inherited from
thirdToLastBang()
thirdToLastBang():
Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1978
Returns
Promise<T>
Inherited from
toArray()
toArray():
Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:713
Returns
Promise<T[]>
Inherited from
toAry()
toAry():
T[] |null
Defined in: packages/activerecord/lib/relation.ts:709
Returns
T[] | null
Inherited from
toFormattedS()
toFormattedS(
format?):Promise<string>
Defined in: packages/activerecord/lib/relation.ts:2175
Parameters
| Parameter | Type |
|---|---|
format? | string |
Returns
Promise<string>
Inherited from
toFs()
toFs(
format?):Promise<string>
Defined in: packages/activerecord/lib/relation.ts:2174
Parameters
| Parameter | Type |
|---|---|
format? | string |
Returns
Promise<string>
Inherited from
toSentence()
toSentence(
options?):Promise<string>
Defined in: packages/activerecord/lib/relation.ts:2172
Parameters
| Parameter | Type |
|---|---|
options? | ToSentenceOptions |
Returns
Promise<string>
Inherited from
toSql()
toSql():
string
Defined in: packages/activerecord/lib/relation.ts:1148
Returns
string
Missing Rails Call
apply_join_dependency — PERMANENT
Missing Rails Call
with_connection — PERMANENT
Inherited from
touchAll()
touchAll(...
names):Promise<number>
Defined in: packages/activerecord/lib/relation.ts:913
Parameters
| Parameter | Type |
|---|---|
...names | TouchAllArgs |
Returns
Promise<number>
Inherited from
toXml()
toXml(
options?):Promise<string>
Defined in: packages/activerecord/lib/relation.ts:2176
Parameters
| Parameter | Type |
|---|---|
options? | ToXmlOptions |
Returns
Promise<string>
Inherited from
toYaml()
toYaml():
Promise<string>
Defined in: packages/activerecord/lib/relation.ts:603
Returns
Promise<string>
No Rails Equivalent
PERMANENT
Inherited from
transaction()
transaction<
R>(fn,options?):Promise<R|undefined>
Defined in: packages/activerecord/lib/relation.ts:2185
Type Parameters
| Type Parameter |
|---|
R |
Parameters
| Parameter | Type |
|---|---|
fn | (tx) => Promise<R> |
options? | { isolation?: string; joinable?: boolean; requiresNew?: boolean; } |
options.isolation? | string |
options.joinable? | boolean |
options.requiresNew? | boolean |
Returns
Promise<R | undefined>
Inherited from
union()
union(
other):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:2157
Parameters
| Parameter | Type |
|---|---|
other | T[] |
Returns
Promise<T[]>
Inherited from
unscope()
unscope<
A>(...args):Relation<T,UnscopeArgextendsA[number] ?boolean:":group"extendsA[number] ?false:boolean>
Defined in: packages/activerecord/lib/relation.ts:1989
Type Parameters
| Type Parameter |
|---|
A extends UnscopeArg[] |
Parameters
| Parameter | Type |
|---|---|
...args | A |
Returns
Relation<T, UnscopeArg extends A[number] ? boolean : ":group" extends A[number] ? false : boolean>
Inherited from
unscoped()
unscoped():
Relation<T>
Defined in: packages/activerecord/lib/relation.ts:2190
Returns
Relation<T>
Inherited from
update()
Call Signature
update(
attributes):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:1356
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown> |
Returns
Promise<T[]>
Inherited from
Call Signature
update(
id,attributes):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:1357
Parameters
| Parameter | Type |
|---|---|
id | ":all" |
attributes | Record<string, unknown> |
Returns
Promise<T[]>
Inherited from
Call Signature
update(
id,attributes):Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1358
Parameters
| Parameter | Type |
|---|---|
id | unknown |
attributes | Record<string, unknown> |
Returns
Promise<T>
Inherited from
updateAll()
updateAll(
updates):Promise<number>
Defined in: packages/activerecord/lib/relation.ts:839
Parameters
| Parameter | Type |
|---|---|
updates | string | Record<string, unknown> | [string, ...unknown[]] |
Returns
Promise<number>
Inherited from
updateBang()
Call Signature
updateBang(
attributes):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:1375
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown> |
Returns
Promise<T[]>
Inherited from
Call Signature
updateBang(
id,attributes):Promise<T[]>
Defined in: packages/activerecord/lib/relation.ts:1376
Parameters
| Parameter | Type |
|---|---|
id | ":all" |
attributes | Record<string, unknown> |
Returns
Promise<T[]>
Inherited from
Call Signature
updateBang(
id,attributes):Promise<T>
Defined in: packages/activerecord/lib/relation.ts:1377
Parameters
| Parameter | Type |
|---|---|
id | unknown |
attributes | Record<string, unknown> |
Returns
Promise<T>
Inherited from
updateCounters()
updateCounters(
counters):Promise<number>
Defined in: packages/activerecord/lib/relation.ts:1426
Parameters
| Parameter | Type |
|---|---|
counters | Record<string, number | { time?: Temporal.Instant; } | CounterCacheTouchOption | undefined> |
Returns
Promise<number>
Inherited from
upsert()
upsert(
attributes,options?):Promise<Result>
Defined in: packages/activerecord/lib/relation.ts:1419
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown> |
options? | { returning?: false | SqlLiteral | `:${string}` | `:${string}`[]; uniqueBy?: string | string[]; } |
options.returning? | false | SqlLiteral | `:${string}` | `:${string}`[] |
options.uniqueBy? | string | string[] |
Returns
Promise<Result>
Inherited from
upsertAll()
upsertAll(
attributes,options?):Promise<Result>
Defined in: packages/activerecord/lib/relation.ts:1030
Parameters
| Parameter | Type |
|---|---|
attributes | Record<string, unknown>[] |
options? | { onDuplicate?: SqlLiteral | ":skip" | ":update"; recordTimestamps?: boolean; returning?: false | SqlLiteral | `:${string}` | `:${string}`[]; uniqueBy?: string | string[]; updateOnly?: string | string[]; } |
options.onDuplicate? | SqlLiteral | ":skip" | ":update" |
options.recordTimestamps? | boolean |
options.returning? | false | SqlLiteral | `:${string}` | `:${string}`[] |
options.uniqueBy? | string | string[] |
options.updateOnly? | string | string[] |
Returns
Promise<Result>
Inherited from
values()
values():
Record<string,unknown>
Defined in: packages/activerecord/lib/relation.ts:1554
Returns
Record<string, unknown>
Inherited from
valuesForQueries()
valuesForQueries():
Record<string,unknown>
Defined in: packages/activerecord/lib/relation.ts:1559
Returns
Record<string, unknown>
Missing Rails Name
values — PERMANENT
Inherited from
where()
Call Signature
where():
WhereChain<Relation<T,boolean>>
Defined in: packages/activerecord/lib/relation.ts:2057
Returns
WhereChain<Relation<T, boolean>>
Inherited from
Call Signature
where(
args):WhereChain<Relation<T,boolean>>
Defined in: packages/activerecord/lib/relation.ts:2058
Parameters
| Parameter | Type |
|---|---|
args | undefined |
Returns
WhereChain<Relation<T, boolean>>
Inherited from
Call Signature
where(
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2059
Parameters
| Parameter | Type |
|---|---|
args | Record<string, unknown> | null |
Returns
Relation<T, boolean>
Inherited from
Call Signature
where(
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2060
Parameters
| Parameter | Type |
|---|---|
args | Map<unknown, unknown> |
Returns
Relation<T, boolean>
Inherited from
Call Signature
where(
sql, ...binds):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2061
Parameters
| Parameter | Type |
|---|---|
sql | string | SqlLiteral |
...binds | unknown[] |
Returns
Relation<T, boolean>
Inherited from
Call Signature
where(
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2062
Parameters
| Parameter | Type |
|---|---|
args | Node | SqlLiteral |
Returns
Relation<T, boolean>
Inherited from
Call Signature
where(
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2063
Parameters
| Parameter | Type |
|---|---|
args | unknown[] |
Returns
Relation<T, boolean>
Inherited from
whereValuesHash()
whereValuesHash(
relationTableName?):Record<string,unknown>
Defined in: packages/activerecord/lib/relation.ts:1057
Parameters
| Parameter | Type |
|---|---|
relationTableName | string | null |
Returns
Record<string, unknown>
Inherited from
with()
with(...
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2017
Parameters
| Parameter | Type |
|---|---|
...args | Record<string, string | Relation<any, boolean> | (string | Relation<any, boolean>)[]>[] |
Returns
Relation<T, boolean>
Inherited from
withConnection()
withConnection<
R>(fn,options?):Promise<R>
Defined in: packages/activerecord/lib/relation.ts:2181
Type Parameters
| Type Parameter |
|---|
R |
Parameters
| Parameter | Type |
|---|---|
fn | (conn) => R | Promise<R> |
options? | { checkoutTimeout?: number; preventPermanentCheckout?: boolean; } |
options.checkoutTimeout? | number |
options.preventPermanentCheckout? | boolean |
Returns
Promise<R>
Inherited from
without()
without(...
records):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2070
Parameters
| Parameter | Type |
|---|---|
...records | unknown[] |
Returns
Relation<T, boolean>
Inherited from
withRecursive()
withRecursive(...
args):Relation<T,boolean>
Defined in: packages/activerecord/lib/relation.ts:2022
Parameters
| Parameter | Type |
|---|---|
...args | Record<string, string | Relation<any, boolean> | (string | Relation<any, boolean>)[]>[] |
Returns
Relation<T, boolean>