diff --git a/GRDB/Core/Cursor.swift b/GRDB/Core/Cursor.swift index ee45c3566..1917fd483 100644 --- a/GRDB/Core/Cursor.swift +++ b/GRDB/Core/Cursor.swift @@ -316,7 +316,7 @@ extension Cursor { /// Returns a cursor that skips any initial elements that satisfy /// `predicate`. /// - /// - Parameter predicate: A closure that takes an element of the cursir as + /// - Parameter predicate: A closure that takes an element of the cursor as /// its argument and returns `true` if the element should be skipped or /// `false` otherwise. Once `predicate` returns `false` it will not be /// called again. diff --git a/GRDB/Core/Database+Schema.swift b/GRDB/Core/Database+Schema.swift index 3e834ae85..84f0a55a9 100644 --- a/GRDB/Core/Database+Schema.swift +++ b/GRDB/Core/Database+Schema.swift @@ -186,7 +186,7 @@ extension Database { } private func exists(type: SchemaObjectType, name: String, in schemaID: SchemaIdentifier) throws -> Bool { - // SQlite identifiers are case-insensitive, case-preserving: + // SQLite identifiers are case-insensitive, case-preserving: // http://www.alberton.info/dbms_identifiers_and_case_sensitivity.html try schema(schemaID).containsObjectNamed(name, ofType: type) } @@ -786,7 +786,7 @@ public struct ColumnInfo: FetchableRecord { /// """) /// let columnInfos = try db.columns(in: "player") /// columnInfos[0].defaultValueSQL // nil - /// columnInfos[1].defaultValueSQL // "'Anoynymous'" + /// columnInfos[1].defaultValueSQL // "'Anonymous'" /// columnInfos[2].defaultValueSQL // "0" /// columnInfos[3].defaultValueSQL // "CURRENT_TIMESTAMP" public let defaultValueSQL: String? diff --git a/GRDB/Core/TransactionObserver.swift b/GRDB/Core/TransactionObserver.swift index 369f53b0b..f222e965a 100644 --- a/GRDB/Core/TransactionObserver.swift +++ b/GRDB/Core/TransactionObserver.swift @@ -164,7 +164,7 @@ extension Database { /// /// try db.execute(sql: "COMMIT") /// -/// During the statement *execution*, SQlite tells the broker that the +/// During the statement *execution*, SQLite tells the broker that the /// transaction is about to be committed through sqlite3_commit_hook. The broker /// invokes observer.databaseWillCommit(). If the observer throws an error, the /// broker asks SQLite to rollback the transaction. Otherwise, the broker lets diff --git a/GRDB/QueryInterface/SQLGeneration/SQLGenerationContext.swift b/GRDB/QueryInterface/SQLGeneration/SQLGenerationContext.swift index a4382cac2..81edac4d0 100644 --- a/GRDB/QueryInterface/SQLGeneration/SQLGenerationContext.swift +++ b/GRDB/QueryInterface/SQLGeneration/SQLGenerationContext.swift @@ -435,7 +435,7 @@ public class TableAlias: Hashable { ordering.sqlOrdering.qualified(with: self) } - /// Returns a qualified columnn that is able to resolve ambiguities in + /// Returns a qualified column that is able to resolve ambiguities in /// joined queries. public subscript(_ column: String) -> SQLExpression { .qualifiedColumn(column, self) diff --git a/GRDB/Record/FetchableRecord.swift b/GRDB/Record/FetchableRecord.swift index b675ef632..6a4d23cb5 100644 --- a/GRDB/Record/FetchableRecord.swift +++ b/GRDB/Record/FetchableRecord.swift @@ -520,7 +520,7 @@ public final class RecordCursor: DatabaseCursor { public let statement: Statement /// :nodoc: public var _isDone = false - private let row: Row // Instanciated once, reused for performance + private let row: Row // Instantiated once, reused for performance init(statement: Statement, arguments: StatementArguments? = nil, adapter: (any RowAdapter)? = nil) throws { self.statement = statement diff --git a/README.md b/README.md index 2b175ce78..cf7eccb9e 100644 --- a/README.md +++ b/README.md @@ -3641,7 +3641,7 @@ When SQLite won't let you provide an explicit primary key (as in [full-text](Doc // When you subclass Record, you need an override: class Book : Record { override class var databaseSelection: [any SQLSelectable] { - [AllColums(), Column.rowID] + [AllColumns(), Column.rowID] } } ```