mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Spelling
This commit is contained in:
1 parent
4ced8c78e7
commit
5243db7fbc
6 files changed
+7
-7
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -520,7 +520,7 @@ public final class RecordCursor<Record: FetchableRecord>: 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
|
||||
|
||||
@@ -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]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user