mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
Fix more typos in public documentation
This commit is contained in:
1 parent
bd7031ec9b
commit
98c58f4eef
85 files changed
+328
-328
No files matched your search
@@ -230,7 +230,7 @@ enum SQLAssociationKey: Refinable {
|
||||
case inflected(String)
|
||||
|
||||
/// A key that is inflected in plural contexts, but strictly honors
|
||||
/// user-provided name in singular contexts.
|
||||
/// the user-provided name in singular contexts.
|
||||
///
|
||||
/// For example:
|
||||
///
|
||||
@@ -244,7 +244,7 @@ enum SQLAssociationKey: Refinable {
|
||||
case fixedSingular(String)
|
||||
|
||||
/// A key that is inflected in singular contexts, but strictly honors
|
||||
/// user-provided name in plural contexts.
|
||||
/// the user-provided name in plural contexts.
|
||||
/// See .inflected and .fixedSingular for some context.
|
||||
case fixedPlural(String)
|
||||
|
||||
|
||||
@@ -905,7 +905,7 @@ extension SQLExpression {
|
||||
// sqlite> SELECT ('a' COLLATE NOCASE) IN ('A');
|
||||
// 1
|
||||
//
|
||||
// Conclusion: "x IN (y,z, ...) COLLATE nocase" can not match the
|
||||
// Conclusion: "x IN (y,z, ...) COLLATE nocase" cannot match the
|
||||
// user intent. We could fatal error. Or warn. Or just make it work:
|
||||
//
|
||||
// Prefer: (expression COLLATE collation) IN (...)
|
||||
@@ -2191,7 +2191,7 @@ extension SQLExpressible where Self == Column {
|
||||
/// For example, ``Column`` is a type that only exists to help you build
|
||||
/// requests, and it adopts `SQLSpecificExpressible`.
|
||||
///
|
||||
/// On the other side, `Int` adopts ``SQLExpressible``.
|
||||
/// On the other hand, `Int` adopts ``SQLExpressible``.
|
||||
///
|
||||
/// ## Topics
|
||||
///
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/// SQLForeignKeyRequest looks for the foreign keys associations need to
|
||||
/// SQLForeignKeyRequest looks for the foreign keys that associations need to
|
||||
/// join tables.
|
||||
///
|
||||
/// Column mappings come from foreign keys, when they exist in the
|
||||
/// database schema.
|
||||
///
|
||||
/// When the schema does not define any foreign key, we can still infer complete
|
||||
/// When the schema does not define any foreign key, we can still infer a complete
|
||||
/// mapping from partial information and primary keys.
|
||||
struct SQLForeignKeyRequest {
|
||||
let originTable: String
|
||||
|
||||
@@ -82,8 +82,8 @@ public func cast(_ expression: some SQLSpecificExpressible, as storageClass: Dat
|
||||
///
|
||||
/// Unlike the SQL function, `coalesce` accepts any number of arguments.
|
||||
/// When `values` is empty, the result is `NULL`. When `values` contains a
|
||||
/// single value, the result is this value. `COALESCE` is used from
|
||||
/// two values upwards.
|
||||
/// single value, the result is this value. `COALESCE` is used for
|
||||
/// two or more values.
|
||||
public func coalesce(_ values: some Collection<any SQLSpecificExpressible>) -> SQLExpression {
|
||||
// SQLite COALESCE wants at least two arguments.
|
||||
// There is no reason to apply the same limitation.
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
///
|
||||
/// - `.oneOptional`:
|
||||
///
|
||||
/// Such children are left joined. They may, or not, be included in
|
||||
/// Such children are left joined. They may or may not be included in
|
||||
/// the selection.
|
||||
///
|
||||
/// // SELECT book.*
|
||||
@@ -56,7 +56,7 @@
|
||||
///
|
||||
/// - `.oneRequired`:
|
||||
///
|
||||
/// Such children are inner joined. They may, or not, be included in
|
||||
/// Such children are inner joined. They may or may not be included in
|
||||
/// the selection.
|
||||
///
|
||||
/// // SELECT book.*
|
||||
@@ -85,9 +85,9 @@
|
||||
/// below, the country relation has a `.bridge` child to passports, and the
|
||||
/// passport relation has an `.all` child to citizens.
|
||||
///
|
||||
/// // SELECT * FROM countries;
|
||||
/// // SELECT citizens.* FROM citizens
|
||||
/// // JOIN passport ON passport.citizenId = citizens.id
|
||||
/// // SELECT * FROM country;
|
||||
/// // SELECT citizen.* FROM citizen
|
||||
/// // JOIN passport ON passport.citizenId = citizen.id
|
||||
/// // AND passport.countryCode IN ('BE', 'DE', 'FR', ...);
|
||||
/// Country.including(all: Country.citizens)
|
||||
struct SQLRelation: Sendable {
|
||||
@@ -388,7 +388,7 @@ extension SQLRelation {
|
||||
/// // JOIN destination ON destination.id = origin.destinationId
|
||||
/// let request = Origin.including(required: Origin.destination)
|
||||
///
|
||||
/// At low-level, this gives:
|
||||
/// At a low level, this gives:
|
||||
///
|
||||
/// let sqlAssociation = Origin.destination._sqlAssociation
|
||||
/// let origin = Origin.all().query.relation
|
||||
@@ -439,7 +439,7 @@ extension SQLRelation {
|
||||
// We want the child for the "captain" in the following request to be
|
||||
// registered under the singular "player" key, and not the plural
|
||||
// "players" key, so that it does not conflict with the other child
|
||||
// named "players" (we can not have two distinct children with the
|
||||
// named "players" (we cannot have two distinct children with the
|
||||
// same key):
|
||||
//
|
||||
// struct Team: TableRecord {
|
||||
|
||||
Reference in new issue
Block a user