This commit is contained in:
Gwendal Roué authored and Gwendal Roué committed 2022-08-21 21:22:34 +02:00
1 parent 4ced8c78e7
commit 5243db7fbc
6 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -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.
+2 -2
View File
@@ -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?
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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]
}
}
```