Fix typos in public documentation

This commit is contained in:
Gwendal Roué committed 2026-11-01 20:45:05 +01:00
1 parent 92a554cd0d
commit 7a216d7d34
124 files changed
+428 -427

No files matched your search

@@ -3,7 +3,7 @@
/// - It provides a database connection during SQL generation, for any purpose
/// such as schema introspection.
///
/// - It provides unique table aliases in order to disambiguates table names
/// - It provides unique table aliases in order to disambiguate table names
/// and columns.
///
/// - It gathers SQL arguments in order to prevent SQL injection.
@@ -46,7 +46,7 @@ final class SQLGenerationContext {
/// - parameter db: A database connection.
/// - parameter argumentsSink: An arguments sink.
/// - parameter aliases: An array of table aliases to disambiguate.
/// - parameter ctes: An dictionary of available CTEs.
/// - parameter ctes: A dictionary of available CTEs.
init(
_ db: Database,
argumentsSink: StatementArgumentsSink = StatementArgumentsSink(),
@@ -63,7 +63,7 @@ final class SQLGenerationContext {
///
/// - parameter parent: A parent context.
/// - parameter aliases: An array of table aliases to disambiguate.
/// - parameter ctes: An dictionary of available CTEs.
/// - parameter ctes: A dictionary of available CTEs.
private init(
parent: SQLGenerationContext,
aliases: [TableAliasBase],
@@ -466,7 +466,7 @@ struct SQLQueryGenerator: Refinable {
case none
/// Grouped by unique key: SELECT ... FROM player GROUP BY id
case unique
/// Grouped by some non-unique columnns: SELECT ... FROM player GROUP BY teamId
/// Grouped by some non-unique columns: SELECT ... FROM player GROUP BY teamId
case nonUnique
}
@@ -518,7 +518,7 @@ struct SQLQueryGenerator: Refinable {
/// let book = try Book(row: row)
/// }
///
/// But as soon as the selection includes columns of a included relation,
/// But as soon as the selection includes columns of an included relation,
/// we need an adapter:
///
/// // SELECT book.*, author.* FROM book JOIN author ON author.id = book.authorId
@@ -659,7 +659,7 @@ private struct SQLQualifiedRelation: Sendable {
/// SQLQueryGenerator (as opposed to the joined relations).
/// - returns: An optional tuple made of a RowAdapter and the index past the
/// rightmost selected column of this relation. Nil is returned if this
/// relations does not need any row adapter.
/// relation does not need any row adapter.
func rowAdapter(
_ context: SQLGenerationContext,
fromIndex startIndex: Int,