mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
DocC
This commit is contained in:
1 parent
35fa28ab90
commit
ed98ac30e0
5 files changed
+64
-19
No files matched your search
@@ -305,13 +305,18 @@ extension AssociationToOne {
|
||||
///
|
||||
/// ### Building Association Aggregates
|
||||
///
|
||||
/// - ``average(_:)``
|
||||
/// - ``average(_:)-4bbk9``
|
||||
/// - ``average(_:)-1rl6m``
|
||||
/// - ``count``
|
||||
/// - ``isEmpty``
|
||||
/// - ``max(_:)``
|
||||
/// - ``min(_:)``
|
||||
/// - ``sum(_:)``
|
||||
/// - ``total(_:)``
|
||||
/// - ``max(_:)-4g5ut``
|
||||
/// - ``max(_:)-32xmj``
|
||||
/// - ``min(_:)-6al4w``
|
||||
/// - ``min(_:)-ulrg``
|
||||
/// - ``sum(_:)-6ge96``
|
||||
/// - ``sum(_:)-8jd26``
|
||||
/// - ``total(_:)-56v8i``
|
||||
/// - ``total(_:)-9ae2u``
|
||||
///
|
||||
/// - ``AssociationAggregate``
|
||||
public protocol AssociationToMany: Association { }
|
||||
|
||||
@@ -382,8 +382,9 @@ extension AssociationToMany {
|
||||
|
||||
/// Returns the sum of the given expression in associated records.
|
||||
///
|
||||
/// This aggregate invokes the `SUM` SQL function. See also ``total(_:)``
|
||||
/// and <https://www.sqlite.org/lang_aggfunc.html#sumunc>.
|
||||
/// This aggregate invokes the `SUM` SQL function.
|
||||
/// See also ``AssociationToMany/total(_:)-56v8i`` and
|
||||
/// <https://www.sqlite.org/lang_aggfunc.html#sumunc>.
|
||||
///
|
||||
/// For example:
|
||||
///
|
||||
@@ -432,8 +433,9 @@ extension AssociationToMany {
|
||||
|
||||
/// Returns the sum of the given expression in associated records.
|
||||
///
|
||||
/// This aggregate invokes the `SUM` SQL function. See also ``total(_:)``
|
||||
/// and <https://www.sqlite.org/lang_aggfunc.html#sumunc>.
|
||||
/// This aggregate invokes the `SUM` SQL function.
|
||||
/// See also ``AssociationToMany/total(_:)-9ae2u`` and
|
||||
/// <https://www.sqlite.org/lang_aggfunc.html#sumunc>.
|
||||
///
|
||||
/// For example:
|
||||
///
|
||||
@@ -485,8 +487,9 @@ extension AssociationToMany {
|
||||
|
||||
/// Returns the sum of the given expression in associated records.
|
||||
///
|
||||
/// This aggregate invokes the `TOTAL` SQL function. See also ``sum(_:)``
|
||||
/// and <https://www.sqlite.org/lang_aggfunc.html#sumunc>.
|
||||
/// This aggregate invokes the `TOTAL` SQL function.
|
||||
/// See also ``AssociationToMany/sum(_:)-6ge96`` and
|
||||
/// <https://www.sqlite.org/lang_aggfunc.html#sumunc>.
|
||||
///
|
||||
/// For example:
|
||||
///
|
||||
@@ -537,8 +540,9 @@ extension AssociationToMany {
|
||||
|
||||
/// Returns the sum of the given expression in associated records.
|
||||
///
|
||||
/// This aggregate invokes the `TOTAL` SQL function. See also ``sum(_:)``
|
||||
/// and <https://www.sqlite.org/lang_aggfunc.html#sumunc>.
|
||||
/// This aggregate invokes the `TOTAL` SQL function.
|
||||
/// See also ``AssociationToMany/sum(_:)-8jd26`` and
|
||||
/// <https://www.sqlite.org/lang_aggfunc.html#sumunc>.
|
||||
///
|
||||
/// For example:
|
||||
///
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
/// - ``asRequest(of:)``
|
||||
/// - ``select(_:as:)-282xc``
|
||||
/// - ``select(_:as:)-3o8qw``
|
||||
/// - ``select(_:as:)-58954``
|
||||
/// - ``select(literal:as:)``
|
||||
/// - ``select(sql:arguments:as:)``
|
||||
/// - ``selectID()``
|
||||
@@ -66,7 +67,8 @@
|
||||
/// - ``deleteAndFetchCursor(_:)``
|
||||
/// - ``deleteAndFetchAll(_:)``
|
||||
/// - ``deleteAndFetchSet(_:)``
|
||||
/// - ``deleteAndFetchStatement(_:selection:)``
|
||||
/// - ``deleteAndFetchStatement(_:selection:)-9q969``
|
||||
/// - ``deleteAndFetchStatement(_:selection:)-1in2u``
|
||||
///
|
||||
/// ### Batch Update
|
||||
///
|
||||
|
||||
@@ -24,9 +24,13 @@ public protocol TypedRequest<RowDecoder> {
|
||||
///
|
||||
/// - ``annotated(with:)-4qcem``
|
||||
/// - ``annotated(with:)-6ehs4``
|
||||
/// - ``annotated(with:)-1satx``
|
||||
/// - ``annotated(with:)-6q3b``
|
||||
/// - ``annotatedWhenConnected(with:)``
|
||||
/// - ``select(_:)-30yzl``
|
||||
/// - ``select(_:)-7e2y5``
|
||||
/// - ``select(_:)-ruzy``
|
||||
/// - ``select(_:)-37j4h``
|
||||
/// - ``select(literal:)``
|
||||
/// - ``select(sql:arguments:)``
|
||||
/// - ``selectWhenConnected(_:)``
|
||||
@@ -343,7 +347,8 @@ extension SelectionRequest {
|
||||
/// ### The WHERE and JOIN ON Clauses
|
||||
///
|
||||
/// - ``all()``
|
||||
/// - ``filter(_:)``
|
||||
/// - ``filter(_:)-48a4t``
|
||||
/// - ``filter(_:)-6xr3d``
|
||||
/// - ``filter(literal:)``
|
||||
/// - ``filter(sql:arguments:)``
|
||||
/// - ``filterWhenConnected(_:)``
|
||||
@@ -875,13 +880,16 @@ extension TableRequest where Self: AggregatingRequest {
|
||||
///
|
||||
/// - ``group(_:)-edak``
|
||||
/// - ``group(_:)-4216o``
|
||||
/// - ``group(_:)-2g7br``
|
||||
/// - ``group(_:)-s6lb``
|
||||
/// - ``group(literal:)``
|
||||
/// - ``group(sql:arguments:)``
|
||||
/// - ``groupWhenConnected(_:)``
|
||||
///
|
||||
/// ### The HAVING Clause
|
||||
///
|
||||
/// - ``having(_:)``
|
||||
/// - ``having(_:)-2ssg9``
|
||||
/// - ``having(_:)-2oggh``
|
||||
/// - ``having(literal:)``
|
||||
/// - ``having(sql:arguments:)``
|
||||
/// - ``havingWhenConnected(_:)``
|
||||
@@ -1154,6 +1162,8 @@ extension AggregatingRequest {
|
||||
///
|
||||
/// - ``order(_:)-63rzl``
|
||||
/// - ``order(_:)-6co0m``
|
||||
/// - ``order(_:)-9d0hr``
|
||||
/// - ``order(_:)-35kv9``
|
||||
/// - ``order(literal:)``
|
||||
/// - ``order(sql:arguments:)``
|
||||
/// - ``orderWhenConnected(_:)``
|
||||
@@ -1667,10 +1677,14 @@ extension JoinableRequest where Self: SelectionRequest {
|
||||
///
|
||||
/// - ``SelectionRequest/annotated(with:)-4qcem``
|
||||
/// - ``SelectionRequest/annotated(with:)-6ehs4``
|
||||
/// - ``SelectionRequest/annotated(with:)-1satx``
|
||||
/// - ``SelectionRequest/annotated(with:)-6q3b``
|
||||
/// - ``SelectionRequest/annotatedWhenConnected(with:)``
|
||||
/// - ``distinct()``
|
||||
/// - ``SelectionRequest/select(_:)-30yzl``
|
||||
/// - ``SelectionRequest/select(_:)-7e2y5``
|
||||
/// - ``SelectionRequest/select(_:)-ruzy``
|
||||
/// - ``SelectionRequest/select(_:)-37j4h``
|
||||
/// - ``SelectionRequest/select(literal:)``
|
||||
/// - ``SelectionRequest/select(sql:arguments:)``
|
||||
/// - ``SelectionRequest/selectWhenConnected(_:)``
|
||||
@@ -1678,7 +1692,8 @@ extension JoinableRequest where Self: SelectionRequest {
|
||||
/// ### The WHERE Clause
|
||||
///
|
||||
/// - ``FilteredRequest/all()``
|
||||
/// - ``FilteredRequest/filter(_:)``
|
||||
/// - ``FilteredRequest/filter(_:)-48a4t``
|
||||
/// - ``FilteredRequest/filter(_:)-6xr3d``
|
||||
/// - ``TableRequest/filter(id:)``
|
||||
/// - ``TableRequest/filter(ids:)``
|
||||
/// - ``TableRequest/filter(key:)-1p9sq``
|
||||
@@ -1696,11 +1711,14 @@ extension JoinableRequest where Self: SelectionRequest {
|
||||
///
|
||||
/// - ``AggregatingRequest/group(_:)-edak``
|
||||
/// - ``AggregatingRequest/group(_:)-4216o``
|
||||
/// - ``AggregatingRequest/group(_:)-2g7br``
|
||||
/// - ``AggregatingRequest/group(_:)-s6lb``
|
||||
/// - ``AggregatingRequest/group(literal:)``
|
||||
/// - ``AggregatingRequest/group(sql:arguments:)``
|
||||
/// - ``TableRequest/groupByPrimaryKey()``
|
||||
/// - ``AggregatingRequest/groupWhenConnected(_:)``
|
||||
/// - ``AggregatingRequest/having(_:)``
|
||||
/// - ``AggregatingRequest/having(_:)-2ssg9``
|
||||
/// - ``AggregatingRequest/having(_:)-2oggh``
|
||||
/// - ``AggregatingRequest/having(literal:)``
|
||||
/// - ``AggregatingRequest/having(sql:arguments:)``
|
||||
/// - ``AggregatingRequest/havingWhenConnected(_:)``
|
||||
@@ -1709,6 +1727,8 @@ extension JoinableRequest where Self: SelectionRequest {
|
||||
///
|
||||
/// - ``OrderedRequest/order(_:)-63rzl``
|
||||
/// - ``OrderedRequest/order(_:)-6co0m``
|
||||
/// - ``OrderedRequest/order(_:)-9d0hr``
|
||||
/// - ``OrderedRequest/order(_:)-35kv9``
|
||||
/// - ``OrderedRequest/order(literal:)``
|
||||
/// - ``OrderedRequest/order(sql:arguments:)``
|
||||
/// - ``OrderedRequest/orderWhenConnected(_:)``
|
||||
|
||||
@@ -63,9 +63,12 @@ import Foundation
|
||||
/// - ``annotated(with:)-4xoen``
|
||||
/// - ``annotated(with:)-8ce7u``
|
||||
/// - ``annotated(with:)-79389``
|
||||
/// - ``annotated(with:)-3szhm``
|
||||
/// - ``annotated(with:)-590fy``
|
||||
/// - ``annotated(withOptional:)``
|
||||
/// - ``annotated(withRequired:)``
|
||||
/// - ``filter(_:)``
|
||||
/// - ``filter(_:)-5u85w``
|
||||
/// - ``filter(_:)-67o9b``
|
||||
/// - ``filter(id:)``
|
||||
/// - ``filter(ids:)``
|
||||
/// - ``filter(key:)-9ey53``
|
||||
@@ -86,14 +89,19 @@ import Foundation
|
||||
/// - ``none()``
|
||||
/// - ``order(_:)-9rc11``
|
||||
/// - ``order(_:)-2033k``
|
||||
/// - ``order(_:)-ij38``
|
||||
/// - ``order(_:)-9dxfg``
|
||||
/// - ``order(literal:)``
|
||||
/// - ``order(sql:arguments:)``
|
||||
/// - ``orderByPrimaryKey()``
|
||||
/// - ``request(for:)``
|
||||
/// - ``select(_:)-1gvtj``
|
||||
/// - ``select(_:)-5oylt``
|
||||
/// - ``select(_:)-8p7il``
|
||||
/// - ``select(_:)-31bbg``
|
||||
/// - ``select(_:as:)-1puz3``
|
||||
/// - ``select(_:as:)-tjh0``
|
||||
/// - ``select(_:as:)-2slxh``
|
||||
/// - ``select(literal:)``
|
||||
/// - ``select(literal:as:)``
|
||||
/// - ``select(sql:arguments:)``
|
||||
@@ -101,6 +109,9 @@ import Foundation
|
||||
/// - ``selectID()``
|
||||
/// - ``selectPrimaryKey(as:)``
|
||||
/// - ``with(_:)``
|
||||
/// - ``columns``
|
||||
/// - ``Columns``
|
||||
/// - ``ColumnsProvider``
|
||||
///
|
||||
/// ### Defining Associations
|
||||
///
|
||||
@@ -169,6 +180,9 @@ public protocol TableRecord {
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
/// Player.ColumnsProvider // Player.Columns.Type by default
|
||||
/// Player.columns // Instance of Player.ColumnsProvider
|
||||
/// Player.columns.score // A Column
|
||||
/// let request = Player.order(\.score.desc)
|
||||
/// ```
|
||||
associatedtype ColumnsProvider = Columns.Type
|
||||
|
||||
Reference in new issue
Block a user