From 71ba7d3ea3ba2d53231d566bcfb9c3ab141fcb36 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gwendal=20Roue=CC=81?=
To create an instance of EnumeratedCursor, call the enumerated() method
on a cursor:
let cursor = try String.fetchCursor(db, "SELECT 'foo' UNION ALL SELECT 'bar'")
let c = cursor.enumerated()
while let (n, x) = c.next() {
@@ -982,7 +981,6 @@ transform function returning Element.
You don’t create a database directly. Instead, you use a DatabaseQueue, or
a DatabasePool:
-
let dbQueue = DatabaseQueue(...)
// The Database is the `db` in the closure:
@@ -1221,7 +1219,6 @@ more information.
You don’t create instances of this class. Instead, you use the Database
create(virtualTable:using:) method:
-
try db.create(virtualTable: "documents", using: FTS3()) { t in // t is FTS3TableDefinition
t.column("content")
}
@@ -1264,7 +1261,6 @@ more information.
You don’t create instances of this class. Instead, you use the Database
create(virtualTable:using:) method:
-
try db.create(virtualTable: "documents", using: FTS4()) { t in // t is FTS4TableDefinition
t.column("content")
}
@@ -1305,7 +1301,6 @@ more information.
virtual table.
You get instances of this class when you create an FTS4 table:
-
try db.create(virtualTable: "persons", using: FTS4()) { t in
t.column("content") // FTS4ColumnDefinition
}
@@ -1478,7 +1473,6 @@ designed to be subclassed.
A subclass of Statement that fetches database rows.
You create SelectStatement with the Database.makeSelectStatement() method:
-
try dbQueue.inDatabase { db in
let statement = try db.makeSelectStatement("SELECT COUNT(*) FROM persons WHERE age > ?")
let moreThanTwentyCount = try Int.fetchOne(statement, arguments: [20])!
@@ -1598,7 +1592,6 @@ and SelectStatement that fetches rows.
A subclass of Statement that executes SQL queries.
You create UpdateStatement with the Database.makeUpdateStatement() method:
-
try dbQueue.inTransaction { db in
let statement = try db.makeUpdateStatement("INSERT INTO persons (name) VALUES (?)")
try statement.execute(arguments: ["Arthur"])
@@ -1644,7 +1637,6 @@ and SelectStatement that fetches rows.
You don’t create instances of this class. Instead, you use the Database
create(table:) method:
-
try db.create(table: "persons") { t in // t is TableDefinition
t.column(...)
}
@@ -1685,7 +1677,6 @@ and SelectStatement that fetches rows.
You don’t create instances of this class. Instead, you use the Database
alter(table:) method:
-
try db.alter(table: "persons") { t in // t is TableAlteration
t.add(column: ...)
}
@@ -1725,7 +1716,6 @@ and SelectStatement that fetches rows.
The ColumnDefinition class lets you refine a table column.
You get instances of this class when you create or alter a database table:
-
try db.create(table: "persons") { t in
t.column(...) // ColumnDefinition
}
@@ -1760,7 +1750,7 @@ try db.alter(table: "persons") { t in
diff --git a/docs/0.107.0/Classes/AnyCursor.html b/docs/0.107.0/Classes/AnyCursor.html
index 65d6a8536..eae10102e 100644
--- a/docs/0.107.0/Classes/AnyCursor.html
+++ b/docs/0.107.0/Classes/AnyCursor.html
@@ -861,7 +861,7 @@ element exists.
diff --git a/docs/0.107.0/Classes/ColumnDefinition.html b/docs/0.107.0/Classes/ColumnDefinition.html
index 06966d2aa..e380f97e5 100644
--- a/docs/0.107.0/Classes/ColumnDefinition.html
+++ b/docs/0.107.0/Classes/ColumnDefinition.html
@@ -756,7 +756,6 @@
The ColumnDefinition class lets you refine a table column.
You get instances of this class when you create or alter a database table:
-
try db.create(table: "persons") { t in
t.column(...) // ColumnDefinition
}
@@ -787,7 +786,6 @@ try db.alter(table: "persons") { t in
Adds a primary key constraint on the column.
-
try db.create(table: "persons") { t in
t.column("id", .integer).primaryKey()
}
@@ -817,8 +815,8 @@ try db.alter(table: "persons") { t in
- An optional conflict resolution (see https://www.sqlite.org/lang_conflict.html).
-
+ An optional conflict resolution
+(see https://www.sqlite.org/lang_conflict.html).
@@ -831,7 +829,6 @@ try db.alter(table: "persons") { t in
If true, the primary key is autoincremented.
-
@@ -841,7 +838,6 @@ try db.alter(table: "persons") { t in
Return Value
Self so that you can further refine the column definition.
-
Show on GitHub
@@ -863,7 +859,6 @@ try db.alter(table: "persons") { t in
Adds a NOT NULL constraint on the column.
-
try db.create(table: "persons") { t in
t.column("name", .text).notNull()
}
@@ -892,8 +887,8 @@ try db.alter(table: "persons") { t in
- An optional conflict resolution (see https://www.sqlite.org/lang_conflict.html).
-
+ An optional conflict resolution
+(see https://www.sqlite.org/lang_conflict.html).
@@ -903,7 +898,6 @@ try db.alter(table: "persons") { t in
Return Value
Self so that you can further refine the column definition.
-
Show on GitHub
@@ -925,7 +919,6 @@ try db.alter(table: "persons") { t in
Adds a UNIQUE constraint on the column.
-
try db.create(table: "persons") { t in
t.column("email", .text).unique()
}
@@ -954,8 +947,8 @@ try db.alter(table: "persons") { t in
- An optional conflict resolution (see https://www.sqlite.org/lang_conflict.html).
-
+ An optional conflict resolution
+(see https://www.sqlite.org/lang_conflict.html).
@@ -965,7 +958,6 @@ try db.alter(table: "persons") { t in
Return Value
Self so that you can further refine the column definition.
-
Show on GitHub
@@ -987,7 +979,6 @@ try db.alter(table: "persons") { t in
Adds a CHECK constraint on the column.
-
try db.create(table: "persons") { t in
t.column("name", .text).check { length($0) > 0 }
}
@@ -1016,8 +1007,8 @@ try db.alter(table: "persons") { t in
- A closure whose argument is an Column that represents the defined column, and returns the expression to check.
-
+ A closure whose argument is an Column that
+represents the defined column, and returns the expression to check.
@@ -1027,7 +1018,6 @@ try db.alter(table: "persons") { t in
Return Value
Self so that you can further refine the column definition.
-
Show on GitHub
@@ -1049,7 +1039,6 @@ try db.alter(table: "persons") { t in
Adds a CHECK constraint on the column.
-
try db.create(table: "persons") { t in
t.column("name", .text).check(sql: "LENGTH(name) > 0")
}
@@ -1079,7 +1068,6 @@ try db.alter(table: "persons") { t in
An SQL snippet.
-
@@ -1089,7 +1077,6 @@ try db.alter(table: "persons") { t in
Return Value
Self so that you can further refine the column definition.
-
Show on GitHub
@@ -1111,7 +1098,6 @@ try db.alter(table: "persons") { t in
Defines the default column value.
-
try db.create(table: "persons") { t in
t.column("name", .text).defaults(to: "Anonymous")
}
@@ -1141,7 +1127,6 @@ try db.alter(table: "persons") { t in
A DatabaseValueConvertible value.
-
@@ -1151,7 +1136,6 @@ try db.alter(table: "persons") { t in
Return Value
Self so that you can further refine the column definition.
-
Show on GitHub
@@ -1173,7 +1157,6 @@ try db.alter(table: "persons") { t in
Defines the default column value.
-
try db.create(table: "persons") { t in
t.column("creationDate", .DateTime).defaults(sql: "CURRENT_TIMESTAMP")
}
@@ -1203,7 +1186,6 @@ try db.alter(table: "persons") { t in
An SQL snippet.
-
@@ -1213,7 +1195,6 @@ try db.alter(table: "persons") { t in
Return Value
Self so that you can further refine the column definition.
-
Show on GitHub
@@ -1263,7 +1244,6 @@ try db.alter(table: "persons") { t in
An Database.CollationName.
-
@@ -1273,7 +1253,6 @@ try db.alter(table: "persons") { t in
Return Value
Self so that you can further refine the column definition.
-
Show on GitHub
@@ -1323,7 +1302,6 @@ try db.alter(table: "persons") { t in
A custom DatabaseCollation.
-
@@ -1333,7 +1311,6 @@ try db.alter(table: "persons") { t in
Return Value
Self so that you can further refine the column definition.
-
Show on GitHub
@@ -1355,7 +1332,6 @@ try db.alter(table: "persons") { t in
Defines a foreign key.
-
try db.create(table: "books") { t in
t.column("authorId", .integer).references("authors", onDelete: .cascade)
}
@@ -1375,7 +1351,6 @@ try db.alter(table: "persons") { t in
Return Value
Self so that you can further refine the column definition.
-
Show on GitHub
@@ -1389,7 +1364,7 @@ try db.alter(table: "persons") { t in
diff --git a/docs/0.107.0/Classes/Database.html b/docs/0.107.0/Classes/Database.html
index 3bed3a864..a9adda363 100644
--- a/docs/0.107.0/Classes/Database.html
+++ b/docs/0.107.0/Classes/Database.html
@@ -757,7 +757,6 @@
You don’t create a database directly. Instead, you use a DatabaseQueue, or
a DatabasePool:
-
let dbQueue = DatabaseQueue(...)
// The Database is the `db` in the closure:
@@ -865,7 +864,6 @@ remains locked for more than the specified duration.
To set the busy mode of a database, use Configuration:
-
let configuration = Configuration(busyMode: .timeout(1))
let dbQueue = DatabaseQueue(path: "...", configuration: configuration)
@@ -1006,7 +1004,6 @@ let dbQueue = DatabaseQueue(path: "...", configuration: configuration)
An SQL column type.
-
try db.create(table: "persons") { t in
t.column("id", .integer).primaryKey()
t.column("title", .text)
@@ -1400,12 +1397,10 @@ opened.
Returns a new prepared statement that can be reused.
-
let statement = try db.makeSelectStatement("SELECT COUNT(*) FROM persons WHERE age > ?")
let moreThanTwentyCount = try Int.fetchOne(statement, arguments: [20])!
let moreThanThirtyCount = try Int.fetchOne(statement, arguments: [30])!
-
Throws
A DatabaseError whenever SQLite could not parse the sql query.
@@ -1434,7 +1429,6 @@ let moreThanThirtyCount = try Int.fetchOne(statement, arguments: [30])!
An SQL query.
-
@@ -1444,7 +1438,6 @@ let moreThanThirtyCount = try Int.fetchOne(statement, arguments: [30])!
Return Value
A SelectStatement.
-
Show on GitHub
@@ -1466,7 +1459,6 @@ let moreThanThirtyCount = try Int.fetchOne(statement, arguments: [30])!
Returns a prepared statement that can be reused.
-
let statement = try db.cachedSelectStatement("SELECT COUNT(*) FROM persons WHERE age > ?")
let moreThanTwentyCount = try Int.fetchOne(statement, arguments: [20])!
let moreThanThirtyCount = try Int.fetchOne(statement, arguments: [30])!
@@ -1474,7 +1466,6 @@ let moreThanThirtyCount = try Int.fetchOne(statement, arguments: [30])!
The returned statement may have already been used: it may or may not
contain values for its eventual arguments.
-
Throws
A DatabaseError whenever SQLite could not parse the sql query.
@@ -1503,7 +1494,6 @@ contain values for its eventual arguments.
An SQL query.
-
@@ -1513,7 +1503,6 @@ contain values for its eventual arguments.
Return Value
An UpdateStatement.
-
Show on GitHub
@@ -1535,12 +1524,10 @@ contain values for its eventual arguments.
Returns a new prepared statement that can be reused.
-
let statement = try db.makeUpdateStatement("INSERT INTO persons (name) VALUES (?)")
try statement.execute(arguments: ["Arthur"])
try statement.execute(arguments: ["Barbara"])
-
Throws
A DatabaseError whenever SQLite could not parse the sql query.
@@ -1569,7 +1556,6 @@ try statement.execute(arguments: ["Barbara"])
An SQL query.
-
@@ -1579,7 +1565,6 @@ try statement.execute(arguments: ["Barbara"])
Return Value
An UpdateStatement.
-
Show on GitHub
@@ -1601,7 +1586,6 @@ try statement.execute(arguments: ["Barbara"])
Returns a prepared statement that can be reused.
-
let statement = try db.cachedUpdateStatement("INSERT INTO persons (name) VALUES (?)")
try statement.execute(arguments: ["Arthur"])
try statement.execute(arguments: ["Barbara"])
@@ -1609,7 +1593,6 @@ try statement.execute(arguments: ["Barbara"])
The returned statement may have already been used: it may or may not
contain values for its eventual arguments.
-
Throws
A DatabaseError whenever SQLite could not parse the sql query.
@@ -1638,7 +1621,6 @@ contain values for its eventual arguments.
An SQL query.
-
@@ -1648,7 +1630,6 @@ contain values for its eventual arguments.
Return Value
An UpdateStatement.
-
Show on GitHub
@@ -1670,7 +1651,6 @@ contain values for its eventual arguments.
Executes one or several SQL statements, separated by semi-colons.
-
try db.execute(
"INSERT INTO persons (name) VALUES (:name)",
arguments: ["name": "Arthur"])
@@ -1683,7 +1663,6 @@ try db.execute(
This method may throw a DatabaseError.
-
Throws
A DatabaseError whenever an SQLite error occurs.
@@ -1712,7 +1691,6 @@ try db.execute(
An SQL query.
-
@@ -1725,7 +1703,6 @@ try db.execute(
Optional statement arguments.
-
@@ -1756,7 +1733,6 @@ try db.execute(
Add or redefine an SQL function.
-
let fn = DatabaseFunction("succ", argumentCount: 1) { databaseValues in
let dbv = databaseValues.first!
guard let int = dbv.value() as Int? else {
@@ -1831,7 +1807,6 @@ try Int.fetchOne(db, "SELECT succ(1)")! // 2
Add or redefine a collation.
-
let collation = DatabaseCollation("localized_standard") { (string1, string2) in
return (string1 as NSString).localizedStandardCompare(string2)
}
@@ -1966,7 +1941,6 @@ modified by another connection.
The primary key for table named tableName; nil if table has no
primary key.
-
Throws
A DatabaseError if table does not exist.
@@ -2002,7 +1976,6 @@ primary key.
The number of columns in the table named tableName.
-
Throws
A DatabaseError if table does not exist.
@@ -2110,7 +2083,6 @@ if the columns are the primary key, or if there is a unique index on them.
Executes a block inside a database transaction.
-
try dbQueue.inDatabase do {
try db.inTransaction {
try db.execute("INSERT ...")
@@ -2123,7 +2095,6 @@ if the columns are the primary key, or if there is a unique index on them.
error is rethrown.
This method is not reentrant: you can’t nest transactions.
-
Throws
The error thrown by the block.
@@ -2151,8 +2122,10 @@ error is rethrown.
- The transaction type (default nil). If nil, the transaction type is configuration.defaultTransactionKind, which itself defaults to .immediate. See https://www.sqlite.org/lang_transaction.html for more information.
-
+ The transaction type (default nil). If nil, the transaction
+type is configuration.defaultTransactionKind, which itself
+defaults to .immediate. See https://www.sqlite.org/lang_transaction.html
+for more information.
@@ -2164,8 +2137,8 @@ error is rethrown.
- A block that executes SQL statements and return either .commit or .rollback.
-
+ A block that executes SQL statements and return either
+.commit or .rollback.
@@ -2192,7 +2165,6 @@ error is rethrown.
Executes a block inside a savepoint.
-
try dbQueue.inDatabase do {
try db.inSavepoint {
try db.execute("INSERT ...")
@@ -2205,7 +2177,6 @@ error is rethrown.
error is rethrown.
This method is reentrant: you can nest savepoints.
-
Throws
The error thrown by the block.
@@ -2233,8 +2204,8 @@ error is rethrown.
- A block that executes SQL statements and return either .commit or .rollback.
-
+ A block that executes SQL statements and return
+either .commit or .rollback.
@@ -2288,7 +2259,6 @@ stops getting notifications after it is deallocated.
A transaction observer.
-
@@ -2383,7 +2353,6 @@ stops getting notifications after it is deallocated.
Creates a database table.
-
try db.create(table: "pointOfInterests") { t in
t.column("id", .integer).primaryKey()
t.column("title", .text)
@@ -2395,7 +2364,6 @@ stops getting notifications after it is deallocated.
See https://www.sqlite.org/lang_createtable.html and
https://www.sqlite.org/withoutrowid.html
-
Throws
A DatabaseError whenever an SQLite error occurs.
@@ -2424,7 +2392,6 @@ stops getting notifications after it is deallocated.
The table name.
-
@@ -2437,7 +2404,6 @@ stops getting notifications after it is deallocated.
If true, creates a temporary table.
-
@@ -2450,7 +2416,6 @@ stops getting notifications after it is deallocated.
If false, no error is thrown if table already exists.
-
@@ -2463,7 +2428,6 @@ stops getting notifications after it is deallocated.
If true, uses WITHOUT ROWID optimization.
-
@@ -2476,7 +2440,6 @@ stops getting notifications after it is deallocated.
A closure that defines table columns and constraints.
-
@@ -2503,7 +2466,6 @@ stops getting notifications after it is deallocated.
Creates a database table.
-
try db.create(table: "pointOfInterests") { t in
t.column("id", .integer).primaryKey()
t.column("title", .text)
@@ -2514,7 +2476,6 @@ stops getting notifications after it is deallocated.
See https://www.sqlite.org/lang_createtable.html
-
Throws
A DatabaseError whenever an SQLite error occurs.
@@ -2543,7 +2504,6 @@ stops getting notifications after it is deallocated.
The table name.
-
@@ -2556,7 +2516,6 @@ stops getting notifications after it is deallocated.
If true, creates a temporary table.
-
@@ -2569,7 +2528,6 @@ stops getting notifications after it is deallocated.
If false, no error is thrown if table already exists.
-
@@ -2582,7 +2540,6 @@ stops getting notifications after it is deallocated.
A closure that defines table columns and constraints.
-
@@ -2611,7 +2568,6 @@ stops getting notifications after it is deallocated.
Renames a database table.
See https://www.sqlite.org/lang_altertable.html
-
Throws
A DatabaseError whenever an SQLite error occurs.
@@ -2647,14 +2603,12 @@ stops getting notifications after it is deallocated.
Modifies a database table.
-
try db.alter(table: "persons") { t in
t.add(column: "url", .text)
}
See https://www.sqlite.org/lang_altertable.html
-
Throws
A DatabaseError whenever an SQLite error occurs.
@@ -2683,7 +2637,6 @@ stops getting notifications after it is deallocated.
The table name.
-
@@ -2696,7 +2649,6 @@ stops getting notifications after it is deallocated.
A closure that defines table alterations.
-
@@ -2725,7 +2677,6 @@ stops getting notifications after it is deallocated.
Deletes a database table.
See https://www.sqlite.org/lang_droptable.html
-
Throws
A DatabaseError whenever an SQLite error occurs.
@@ -2788,14 +2739,12 @@ stops getting notifications after it is deallocated.
Creates an index.
-
try db.create(index: "personByEmail", on: "person", columns: ["email"])
SQLite can also index expressions (https://www.sqlite.org/expridx.html)
and use specific collations. To create such an index, use a raw SQL
query.
-
try db.execute("CREATE INDEX ...")
@@ -2823,7 +2772,6 @@ query.
The index name.
-
@@ -2836,7 +2784,6 @@ query.
The name of the indexed table.
-
@@ -2849,7 +2796,6 @@ query.
The indexed columns.
-
@@ -2862,7 +2808,6 @@ query.
If true, creates a unique index.
-
@@ -2875,7 +2820,6 @@ query.
If false, no error is thrown if index already exists.
-
@@ -2902,7 +2846,6 @@ query.
Creates a partial index.
-
try db.create(index: "personByEmail", on: "person", columns: ["email"], condition: Column("email") != nil)
@@ -2931,7 +2874,6 @@ query.
The index name.
-
@@ -2944,7 +2886,6 @@ query.
The name of the indexed table.
-
@@ -2957,7 +2898,6 @@ query.
The indexed columns.
-
@@ -2970,7 +2910,6 @@ query.
If true, creates a unique index.
-
@@ -2983,7 +2922,6 @@ query.
If false, no error is thrown if index already exists.
-
@@ -2996,7 +2934,6 @@ query.
The condition that indexed rows must verify.
-
@@ -3025,7 +2962,6 @@ query.
Deletes a database index.
See https://www.sqlite.org/lang_dropindex.html
-
Throws
A DatabaseError whenever an SQLite error occurs.
@@ -3072,12 +3008,10 @@ query.
Creates a virtual database table.
-
try db.create(virtualTable: "vocabulary", using: "spellfix1")
See https://www.sqlite.org/lang_createtable.html
-
Throws
A DatabaseError whenever an SQLite error occurs.
@@ -3106,7 +3040,6 @@ query.
The table name.
-
@@ -3119,7 +3052,6 @@ query.
If false, no error is thrown if table already exists.
-
@@ -3132,7 +3064,6 @@ query.
The name of an SQLite virtual table module.
-
@@ -3159,7 +3090,6 @@ query.
Creates a virtual database table.
-
let module = ...
try db.create(virtualTable: "pointOfInterests", using: module) { t in
...
@@ -3171,7 +3101,6 @@ argument: refer to this module’s documentation.
Use this method to create full-text tables using the FTS3, FTS4, or
FTS5 modules:
-
try db.create(virtualTable: "books", using: FTS4()) { t in
t.column("title")
t.column("author")
@@ -3180,7 +3109,6 @@ FTS5 modules:
See https://www.sqlite.org/lang_createtable.html
-
Throws
A DatabaseError whenever an SQLite error occurs.
@@ -3209,7 +3137,6 @@ FTS5 modules:
The table name.
-
@@ -3222,7 +3149,6 @@ FTS5 modules:
If false, no error is thrown if table already exists.
-
@@ -3235,7 +3161,6 @@ FTS5 modules:
a VirtualTableModule
-
@@ -3248,7 +3173,6 @@ FTS5 modules:
An optional closure that defines the virtual table.
-
@@ -3267,7 +3191,7 @@ FTS5 modules:
diff --git a/docs/0.107.0/Classes/Database/BusyMode.html b/docs/0.107.0/Classes/Database/BusyMode.html
index 0c7c0f375..52844e6a8 100644
--- a/docs/0.107.0/Classes/Database/BusyMode.html
+++ b/docs/0.107.0/Classes/Database/BusyMode.html
@@ -768,7 +768,6 @@ remains locked for more than the specified duration.
To set the busy mode of a database, use Configuration:
-
let configuration = Configuration(busyMode: .timeout(1))
let dbQueue = DatabaseQueue(path: "...", configuration: configuration)
@@ -893,7 +892,7 @@ See https://www.sqlite.
diff --git a/docs/0.107.0/Classes/Database/CheckpointMode.html b/docs/0.107.0/Classes/Database/CheckpointMode.html
index 0e9765c03..c4f454a45 100644
--- a/docs/0.107.0/Classes/Database/CheckpointMode.html
+++ b/docs/0.107.0/Classes/Database/CheckpointMode.html
@@ -897,7 +897,7 @@
diff --git a/docs/0.107.0/Classes/Database/CollationName.html b/docs/0.107.0/Classes/Database/CollationName.html
index 7c99daedb..c0eff4dee 100644
--- a/docs/0.107.0/Classes/Database/CollationName.html
+++ b/docs/0.107.0/Classes/Database/CollationName.html
@@ -831,8 +831,7 @@
- The raw value to use for the new instance.
-
+
@@ -1003,7 +1002,7 @@
diff --git a/docs/0.107.0/Classes/Database/ColumnType.html b/docs/0.107.0/Classes/Database/ColumnType.html
index 949e23bf4..8f71cd4fa 100644
--- a/docs/0.107.0/Classes/Database/ColumnType.html
+++ b/docs/0.107.0/Classes/Database/ColumnType.html
@@ -754,7 +754,6 @@
An SQL column type.
-
try db.create(table: "persons") { t in
t.column("id", .integer).primaryKey()
t.column("title", .text)
@@ -781,7 +780,6 @@
An SQL column type.
-
try db.create(table: "persons") { t in
t.column("id", .integer).primaryKey()
t.column("title", .text)
@@ -819,7 +817,6 @@
An SQL column type.
-
try db.create(table: "persons") { t in
t.column("id", .integer).primaryKey()
t.column("title", .text)
@@ -849,8 +846,7 @@
- The raw value to use for the new instance.
-
+
@@ -907,7 +903,6 @@
An SQL column type.
-
try db.create(table: "persons") { t in
t.column("id", .integer).primaryKey()
t.column("title", .text)
@@ -1177,7 +1172,7 @@
diff --git a/docs/0.107.0/Classes/Database/ConflictResolution.html b/docs/0.107.0/Classes/Database/ConflictResolution.html
index 9b524f37b..971966fd0 100644
--- a/docs/0.107.0/Classes/Database/ConflictResolution.html
+++ b/docs/0.107.0/Classes/Database/ConflictResolution.html
@@ -933,7 +933,7 @@
diff --git a/docs/0.107.0/Classes/Database/ForeignKeyAction.html b/docs/0.107.0/Classes/Database/ForeignKeyAction.html
index 0c02139d6..de600686c 100644
--- a/docs/0.107.0/Classes/Database/ForeignKeyAction.html
+++ b/docs/0.107.0/Classes/Database/ForeignKeyAction.html
@@ -899,7 +899,7 @@
diff --git a/docs/0.107.0/Classes/Database/TransactionCompletion.html b/docs/0.107.0/Classes/Database/TransactionCompletion.html
index f22520ae6..b4e3decc7 100644
--- a/docs/0.107.0/Classes/Database/TransactionCompletion.html
+++ b/docs/0.107.0/Classes/Database/TransactionCompletion.html
@@ -829,7 +829,7 @@
diff --git a/docs/0.107.0/Classes/Database/TransactionKind.html b/docs/0.107.0/Classes/Database/TransactionKind.html
index cf74992be..68ad54499 100644
--- a/docs/0.107.0/Classes/Database/TransactionKind.html
+++ b/docs/0.107.0/Classes/Database/TransactionKind.html
@@ -863,7 +863,7 @@
diff --git a/docs/0.107.0/Classes/DatabaseCollation.html b/docs/0.107.0/Classes/DatabaseCollation.html
index fb72eec3e..867f0a8c2 100644
--- a/docs/0.107.0/Classes/DatabaseCollation.html
+++ b/docs/0.107.0/Classes/DatabaseCollation.html
@@ -803,7 +803,6 @@
Returns a collation.
-
let collation = DatabaseCollation("localized_standard") { (string1, string2) in
return (string1 as NSString).localizedStandardCompare(string2)
}
@@ -833,7 +832,6 @@ try db.execute("CREATE TABLE files (name TEXT COLLATE localized_standard")
The function name.
-
@@ -846,7 +844,6 @@ try db.execute("CREATE TABLE files (name TEXT COLLATE localized_standard")
A function that compares two strings.
-
@@ -947,7 +944,6 @@ according to the the Swift built-in == and <= operators.
connections.
You can use it when creating database tables:
-
let collationName = DatabaseCollation.caseInsensitiveCompare.name
dbQueue.execute(
"CREATE TABLE persons (" +
@@ -991,7 +987,6 @@ according to the the Swift built-in caseInsensitiveCompare(_:) method.
connections.
You can use it when creating database tables:
-
let collationName = DatabaseCollation.caseInsensitiveCompare.name
dbQueue.execute(
"CREATE TABLE persons (" +
@@ -1035,7 +1030,6 @@ according to the the Swift built-in localizedCaseInsensitiveCompare(_:) method.<
connections.
You can use it when creating database tables:
-
let collationName = DatabaseCollation.localizedCaseInsensitiveCompare.name
dbQueue.execute(
"CREATE TABLE persons (" +
@@ -1079,7 +1073,6 @@ according to the the Swift built-in localizedCompare(_:) method.
connections.
You can use it when creating database tables:
-
let collationName = DatabaseCollation.localizedCompare.name
dbQueue.execute(
"CREATE TABLE persons (" +
@@ -1123,7 +1116,6 @@ according to the the Swift built-in localizedStandardCompare(_:) method.
connections.
You can use it when creating database tables:
-
let collationName = DatabaseCollation.localizedStandardCompare.name
dbQueue.execute(
"CREATE TABLE persons (" +
@@ -1153,7 +1145,7 @@ dbQueue.execute(
diff --git a/docs/0.107.0/Classes/DatabaseCursor.html b/docs/0.107.0/Classes/DatabaseCursor.html
index fefaed216..6a7790455 100644
--- a/docs/0.107.0/Classes/DatabaseCursor.html
+++ b/docs/0.107.0/Classes/DatabaseCursor.html
@@ -774,7 +774,6 @@
Advances to the next element and returns it, or nil if no next element
exists. Once nil has been returned, all subsequent calls return nil.
-
let rows = try Row.fetchCursor(db, "SELECT ...") // DatabaseCursor<Row>
while let row = try rows.next() { // Row
let id: Int64 = row.value(atIndex: 0)
@@ -803,7 +802,7 @@ while let row = try rows.next() { // Row
diff --git a/docs/0.107.0/Classes/DatabaseFunction.html b/docs/0.107.0/Classes/DatabaseFunction.html
index c53bf0b1c..d6f5acb4c 100644
--- a/docs/0.107.0/Classes/DatabaseFunction.html
+++ b/docs/0.107.0/Classes/DatabaseFunction.html
@@ -803,7 +803,6 @@
Returns an SQL function.
-
let fn = DatabaseFunction("succ", argumentCount: 1) { databaseValues in
let dbv = databaseValues.first!
guard let int = dbv.value() as Int? else {
@@ -837,7 +836,6 @@ try Int.fetchOne(db, "SELECT succ(1)")! // 2
The function name.
-
@@ -849,8 +847,8 @@ try Int.fetchOne(db, "SELECT succ(1)")! // 2
- The number of arguments of the function. If omitted, or nil, the function accepts any number of arguments.
-
+ The number of arguments of the function. If
+omitted, or nil, the function accepts any number of arguments.
@@ -862,8 +860,10 @@ try Int.fetchOne(db, "SELECT succ(1)")! // 2
- Whether the function is “pure”, which means that its results only depends on its inputs. When a function is pure, SQLite has the opportunity to perform additional optimizations. Default value is false.
-
+ Whether the function is pure
, which means that its results
+only depends on its inputs. When a function is pure, SQLite has
+the opportunity to perform additional optimizations. Default value
+is false.
@@ -875,8 +875,11 @@ try Int.fetchOne(db, "SELECT succ(1)")! // 2
- A function that takes an array of DatabaseValue arguments, and returns an optional DatabaseValueConvertible such as Int, String, NSDate, etc. The array is guaranteed to have exactly elements, provided is not nil.
-
+ A function that takes an array of DatabaseValue
+arguments, and returns an optional DatabaseValueConvertible such
+as Int, String, NSDate, etc. The array is guaranteed to have
+exactly argumentCount elements, provided argumentCount is
+not nil.
@@ -1014,7 +1017,6 @@ String property.
This function is automatically added by GRDB to your database
connections. It is the function used by the query interface’s
capitalized:
-
let nameColumn = Column("name")
let request = Person.select(nameColumn.capitalized)
let names = try String.fetchAll(dbQueue, request) // [String]
@@ -1056,7 +1058,6 @@ String property.
This function is automatically added by GRDB to your database
connections. It is the function used by the query interface’s
lowercased:
-
let nameColumn = Column("name")
let request = Person.select(nameColumn.lowercased())
let names = try String.fetchAll(dbQueue, request) // [String]
@@ -1098,7 +1099,6 @@ String property.
This function is automatically added by GRDB to your database
connections. It is the function used by the query interface’s
uppercased:
-
let nameColumn = Column("name")
let request = Person.select(nameColumn.uppercased())
let names = try String.fetchAll(dbQueue, request) // [String]
@@ -1144,7 +1144,6 @@ localizedCapitalized String property.
This function is automatically added by GRDB to your database
connections. It is the function used by the query interface’s
localizedCapitalized:
-
let nameColumn = Column("name")
let request = Person.select(nameColumn.localizedCapitalized)
let names = try String.fetchAll(dbQueue, request) // [String]
@@ -1186,7 +1185,6 @@ localizedLowercased String property.
This function is automatically added by GRDB to your database
connections. It is the function used by the query interface’s
localizedLowercased:
-
let nameColumn = Column("name")
let request = Person.select(nameColumn.localizedLowercased)
let names = try String.fetchAll(dbQueue, request) // [String]
@@ -1228,7 +1226,6 @@ localizedUppercased String property.
This function is automatically added by GRDB to your database
connections. It is the function used by the query interface’s
localizedUppercased:
-
let nameColumn = Column("name")
let request = Person.select(nameColumn.localizedUppercased)
let names = try String.fetchAll(dbQueue, request) // [String]
@@ -1255,7 +1252,7 @@ let names = try String.fetchAll(dbQueue, request) // [String]
diff --git a/docs/0.107.0/Classes/DatabasePool.html b/docs/0.107.0/Classes/DatabasePool.html
index b49da7766..3ebdfa13c 100644
--- a/docs/0.107.0/Classes/DatabasePool.html
+++ b/docs/0.107.0/Classes/DatabasePool.html
@@ -780,12 +780,10 @@
Opens the SQLite database at path path.
-
let dbPool = try DatabasePool(path: "/path/to/database.sqlite")
Database connections get closed when the database pool gets deallocated.
-
Throws
A DatabaseError whenever an SQLite error occurs.
@@ -814,7 +812,6 @@
The path to the database file.
-
@@ -827,7 +824,6 @@
A configuration.
-
@@ -840,7 +836,6 @@
The maximum number of readers. Default is 5.
-
@@ -946,7 +941,6 @@ more information.
The checkpoint mode (default passive)
-
@@ -1106,7 +1100,6 @@ enters background.
Synchronously executes a read-only block in a protected dispatch queue,
and returns its result. The block is wrapped in a deferred transaction.
-
let persons = try dbPool.read { db in
try Person.fetchAll(...)
}
@@ -1114,7 +1107,6 @@ and returns its result. The block is wrapped in a deferred transaction.
The block is completely isolated. Eventual concurrent database updates
are not visible inside the block:
-
try dbPool.read { db in
// Those two values are guaranteed to be equal, even if the
// `wines` table is modified between the two requests:
@@ -1129,7 +1121,6 @@ try dbPool.read { db in
This method is not reentrant.
-
Throws
The error thrown by the block, or any DatabaseError that would
@@ -1159,7 +1150,6 @@ happen while establishing the read access to the database.
A block that accesses the database.
-
@@ -1190,7 +1180,6 @@ and returns its result.
The block argument is not isolated: eventual concurrent database updates
are visible inside the block:
-
try dbPool.unsafeRead { db in
// Those two values may be different because some other thread
// may have inserted or deleted a wine between the two requests:
@@ -1200,7 +1189,6 @@ are visible inside the block:
Cursor iteration is safe, though:
-
try dbPool.unsafeRead { db in
// No concurrent update can mess with this iteration:
let rows = try Row.fetchCursor(db, "SELECT ...")
@@ -1209,7 +1197,6 @@ are visible inside the block:
This method is not reentrant.
-
Throws
The error thrown by the block, or any DatabaseError that would
@@ -1239,7 +1226,6 @@ happen while establishing the read access to the database.
A block that accesses the database.
-
@@ -1277,7 +1263,6 @@ happen while establishing the read access to the database.
Add or redefine an SQL function.
-
let fn = DatabaseFunction("succ", argumentCount: 1) { databaseValues in
let dbv = databaseValues.first!
guard let int = dbv.value() as Int? else {
@@ -1361,7 +1346,6 @@ try dbPool.read { db in
Add or redefine a collation.
-
let collation = DatabaseCollation("localized_standard") { (string1, string2) in
return (string1 as NSString).localizedStandardCompare(string2)
}
@@ -1445,7 +1429,6 @@ and returns its result.
Eventual concurrent database updates are postponed until the block
has executed.
-
try dbPool.write { db in
try db.execute(...)
}
@@ -1456,7 +1439,6 @@ from seeing an inconsistent database state, prefer the
writeInTransaction method.
This method is not reentrant.
-
Throws
The error thrown by the block.
@@ -1500,7 +1482,6 @@ has executed.
If the block throws an error, the transaction is rollbacked and the
error is rethrown. If the block returns .rollback, the transaction is
also rollbacked, but no error is thrown.
-
try dbPool.writeInTransaction { db in
db.execute(...)
return .commit
@@ -1508,7 +1489,6 @@ also rollbacked, but no error is thrown.
Eventual concurrent readers do not see partial changes:
-
dbPool.writeInTransaction { db in
// Eventually preserve a zero balance
try db.execute(db, "INSERT INTO credits ...", arguments: [amount])
@@ -1521,7 +1501,6 @@ dbPool.read { db in
This method is not reentrant.
-
Throws
The error thrown by the block, or any error establishing the
@@ -1550,8 +1529,10 @@ transaction.
- The transaction type (default nil). If nil, the transaction type is configuration.defaultTransactionKind, which itself defaults to .immediate. See https://www.sqlite.org/lang_transaction.html for more information.
-
+ The transaction type (default nil). If nil, the transaction
+type is configuration.defaultTransactionKind, which itself
+defaults to .immediate. See https://www.sqlite.org/lang_transaction.html
+for more information.
@@ -1563,8 +1544,8 @@ transaction.
- A block that executes SQL statements and return either .commit or .rollback.
-
+ A block that executes SQL statements and return either
+.commit or .rollback.
@@ -1640,7 +1621,6 @@ wrapped in a deferred transaction.
The block argument is guaranteed to see the database in the last
committed state at the moment this method is called. Eventual concurrent
database updates are not visible inside the block.
-
try dbPool.write { db in
try db.execute("DELETE FROM persons")
try dbPool.readFromCurrentState { db in
@@ -1653,7 +1633,6 @@ database updates are not visible inside the block.
This method blocks the current thread until the isolation guarantee has
been established, and before the block argument has run.
-
Throws
The error thrown by the block, or any DatabaseError that would
@@ -1683,7 +1662,6 @@ happen while establishing the read access to the database.
A block that accesses the database.
-
@@ -1702,7 +1680,7 @@ happen while establishing the read access to the database.
diff --git a/docs/0.107.0/Classes/DatabaseQueue.html b/docs/0.107.0/Classes/DatabaseQueue.html
index 314a0710d..693c6b9b8 100644
--- a/docs/0.107.0/Classes/DatabaseQueue.html
+++ b/docs/0.107.0/Classes/DatabaseQueue.html
@@ -780,12 +780,10 @@
Opens the SQLite database at path path.
-
let dbQueue = try DatabaseQueue(path: "/path/to/database.sqlite")
Database connections get closed when the database queue gets deallocated.
-
Throws
A DatabaseError whenever an SQLite error occurs.
@@ -814,7 +812,6 @@
The path to the database file.
-
@@ -827,7 +824,6 @@
A configuration.
-
@@ -854,7 +850,6 @@
Opens an in-memory SQLite database.
-
let dbQueue = DatabaseQueue()
@@ -882,7 +877,6 @@
A configuration.
-
@@ -992,14 +986,12 @@
Synchronously executes a block in a protected dispatch queue, and
returns its result.
-
let persons = try dbQueue.inDatabase { db in
try Person.fetchAll(...)
}
This method is not reentrant.
-
Throws
The error thrown by the block.
@@ -1028,7 +1020,6 @@ returns its result.
A block that accesses the database.
-
@@ -1060,7 +1051,6 @@ inside a transaction.
If the block throws an error, the transaction is rollbacked and the
error is rethrown. If the block returns .rollback, the transaction is
also rollbacked, but no error is thrown.
-
try dbQueue.inTransaction { db in
db.execute(...)
return .commit
@@ -1068,7 +1058,6 @@ also rollbacked, but no error is thrown.
This method is not reentrant.
-
Throws
The error thrown by the block.
@@ -1096,8 +1085,10 @@ also rollbacked, but no error is thrown.
- The transaction type (default nil). If nil, the transaction type is configuration.defaultTransactionKind, which itself defaults to .immediate. See https://www.sqlite.org/lang_transaction.html for more information.
-
+ The transaction type (default nil). If nil, the transaction
+type is configuration.defaultTransactionKind, which itself
+defaults to .immediate. See https://www.sqlite.org/lang_transaction.html
+for more information.
@@ -1109,8 +1100,8 @@ also rollbacked, but no error is thrown.
- A block that executes SQL statements and return either .commit or .rollback.
-
+ A block that executes SQL statements and return either
+.commit or .rollback.
@@ -1270,7 +1261,6 @@ enters background.
Synchronously executes a read-only block in a protected dispatch queue,
and returns its result.
-
let persons = try dbQueue.read { db in
try Person.fetchAll(...)
}
@@ -1281,7 +1271,6 @@ and returns its result.
Starting iOS 8.2, OSX 10.10, and with custom SQLite builds and
SQLCipher, attempts to write in the database throw a DatabaseError whose
resultCode is SQLITE_READONLY.
-
Throws
The error thrown by the block.
@@ -1310,7 +1299,6 @@ resultCode is SQLITE_READONLY.
A block that accesses the database.
-
@@ -1378,7 +1366,6 @@ resultCode is SQLITE_READONLY.
Add or redefine an SQL function.
-
let fn = DatabaseFunction("succ", argumentCount: 1) { databaseValues in
let dbv = databaseValues.first!
guard let int = dbv.value() as Int? else {
@@ -1462,7 +1449,6 @@ try dbQueue.inDatabase { db in
Add or redefine a collation.
-
let collation = DatabaseCollation("localized_standard") { (string1, string2) in
return (string1 as NSString).localizedStandardCompare(string2)
}
@@ -1632,7 +1618,7 @@ executing on the protected database dispatch queue.
diff --git a/docs/0.107.0/Classes/EnumeratedCursor.html b/docs/0.107.0/Classes/EnumeratedCursor.html
index f265efb8f..afad33fef 100644
--- a/docs/0.107.0/Classes/EnumeratedCursor.html
+++ b/docs/0.107.0/Classes/EnumeratedCursor.html
@@ -757,7 +757,6 @@
To create an instance of EnumeratedCursor, call the enumerated() method
on a cursor:
-
let cursor = try String.fetchCursor(db, "SELECT 'foo' UNION ALL SELECT 'bar'")
let c = cursor.enumerated()
while let (n, x) = c.next() {
@@ -808,7 +807,7 @@ element exists.
diff --git a/docs/0.107.0/Classes/FTS3TableDefinition.html b/docs/0.107.0/Classes/FTS3TableDefinition.html
index 5cc52dc77..c13d2b98b 100644
--- a/docs/0.107.0/Classes/FTS3TableDefinition.html
+++ b/docs/0.107.0/Classes/FTS3TableDefinition.html
@@ -757,7 +757,6 @@
You don’t create instances of this class. Instead, you use the Database
create(virtualTable:using:) method:
-
try db.create(virtualTable: "documents", using: FTS3()) { t in // t is FTS3TableDefinition
t.column("content")
}
@@ -781,7 +780,6 @@
The virtual table tokenizer
-
try db.create(virtualTable: "documents", using: FTS3()) { t in
t.tokenizer = .porter
}
@@ -818,7 +816,6 @@
Appends a table column.
-
try db.create(virtualTable: "documents", using: FTS3()) { t in
t.column("content")
}
@@ -846,7 +843,6 @@
the column name.
-
@@ -865,7 +861,7 @@
diff --git a/docs/0.107.0/Classes/FTS4ColumnDefinition.html b/docs/0.107.0/Classes/FTS4ColumnDefinition.html
index 1852b251c..48a0ec897 100644
--- a/docs/0.107.0/Classes/FTS4ColumnDefinition.html
+++ b/docs/0.107.0/Classes/FTS4ColumnDefinition.html
@@ -757,7 +757,6 @@
virtual table.
You get instances of this class when you create an FTS4 table:
-
try db.create(virtualTable: "persons", using: FTS4()) { t in
t.column("content") // FTS4ColumnDefinition
}
@@ -810,7 +809,6 @@ virtual table.
Excludes the column from the full-text index.
-
try db.create(virtualTable: "persons", using: FTS4()) { t in
t.column("a")
t.column("b").notIndexed()
@@ -831,7 +829,6 @@ virtual table.
Return Value
Self so that you can further refine the column definition.
-
Show on GitHub
@@ -853,7 +850,6 @@ virtual table.
Uses the column as the Int32 language id hidden column.
-
try db.create(virtualTable: "persons", using: FTS4()) { t in
t.column("a")
t.column("lid").asLanguageId()
@@ -874,7 +870,6 @@ virtual table.
Return Value
Self so that you can further refine the column definition.
-
Show on GitHub
@@ -888,7 +883,7 @@ virtual table.
diff --git a/docs/0.107.0/Classes/FTS4TableDefinition.html b/docs/0.107.0/Classes/FTS4TableDefinition.html
index 0061d2b84..9738cdfce 100644
--- a/docs/0.107.0/Classes/FTS4TableDefinition.html
+++ b/docs/0.107.0/Classes/FTS4TableDefinition.html
@@ -757,7 +757,6 @@
You don’t create instances of this class. Instead, you use the Database
create(virtualTable:using:) method:
-
try db.create(virtualTable: "documents", using: FTS4()) { t in // t is FTS4TableDefinition
t.column("content")
}
@@ -783,7 +782,6 @@
The virtual table tokenizer
-
try db.create(virtualTable: "documents", using: FTS4()) { t in
t.tokenizer = .porter
}
@@ -955,7 +953,6 @@ established with the
Support for the FTS5 prefix option
-
// CREATE VIRTUAL TABLE documents USING FTS4(content, prefix='2 4');
db.create(virtualTable: "documents", using:FTS4()) { t in
t.prefixes = [2, 4]
@@ -994,7 +991,6 @@ db.create(virtualTable: "documents", using:FTS4()) { t in
Appends a table column.
-
try db.create(virtualTable: "documents", using: FTS4()) { t in
t.column("content")
}
@@ -1022,7 +1018,6 @@ db.create(virtualTable: "documents", using:FTS4()) { t in
the column name.
-
@@ -1078,7 +1073,7 @@ full-text table is kept up to date with the external table.
diff --git a/docs/0.107.0/Classes/FTS5ColumnDefinition.html b/docs/0.107.0/Classes/FTS5ColumnDefinition.html
index a6e29ab66..deee392a7 100644
--- a/docs/0.107.0/Classes/FTS5ColumnDefinition.html
+++ b/docs/0.107.0/Classes/FTS5ColumnDefinition.html
@@ -778,7 +778,7 @@
diff --git a/docs/0.107.0/Classes/FTS5TableDefinition.html b/docs/0.107.0/Classes/FTS5TableDefinition.html
index 928ed3f6a..3dfef8856 100644
--- a/docs/0.107.0/Classes/FTS5TableDefinition.html
+++ b/docs/0.107.0/Classes/FTS5TableDefinition.html
@@ -911,7 +911,7 @@
diff --git a/docs/0.107.0/Classes/FetchedRecordsController.html b/docs/0.107.0/Classes/FetchedRecordsController.html
index a122d4ed2..962473d7a 100644
--- a/docs/0.107.0/Classes/FetchedRecordsController.html
+++ b/docs/0.107.0/Classes/FetchedRecordsController.html
@@ -785,7 +785,6 @@ more information.
Creates a fetched records controller initialized from a SQL query and
its eventual arguments.
-
let controller = FetchedRecordsController<Wine>(
dbQueue,
sql: "SELECT * FROM wines WHERE color = ? ORDER BY name",
@@ -815,7 +814,6 @@ its eventual arguments.
A DatabaseWriter (DatabaseQueue, or DatabasePool)
-
@@ -828,7 +826,6 @@ its eventual arguments.
An SQL query.
-
@@ -841,7 +838,6 @@ its eventual arguments.
Optional statement arguments.
-
@@ -854,7 +850,6 @@ its eventual arguments.
Optional RowAdapter
-
@@ -867,8 +862,10 @@ its eventual arguments.
A serial dispatch queue (defaults to the main queue)
-The fetched records controller tracking callbacks will be notified of changes in this queue. The controller itself must be used from this queue.
+The fetched records controller tracking callbacks will be
+notified of changes in this queue. The controller itself must be
+used from this queue.
@@ -881,8 +878,9 @@ its eventual arguments.
Optional function that compares two records.
-This function should return true if the two records have the same identity. For example, they have the same id.
+This function should return true if the two records have the
+same identity. For example, they have the same id.
@@ -910,7 +908,6 @@ its eventual arguments.
Creates a fetched records controller initialized from a fetch request
from the Query Interface.
-
let request = Wine.order(Column("name"))
let controller = FetchedRecordsController(
dbQueue,
@@ -940,7 +937,6 @@ let controller = FetchedRecordsController(
A DatabaseWriter (DatabaseQueue, or DatabasePool)
-
@@ -953,7 +949,6 @@ let controller = FetchedRecordsController(
A fetch request.
-
@@ -966,8 +961,10 @@ let controller = FetchedRecordsController(
A serial dispatch queue (defaults to the main queue)
-The fetched records controller tracking callbacks will be notified of changes in this queue. The controller itself must be used from this queue.
+The fetched records controller tracking callbacks will be
+notified of changes in this queue. The controller itself must be
+used from this queue.
@@ -980,8 +977,9 @@ let controller = FetchedRecordsController(
Optional function that compares two records.
-This function should return true if the two records have the same identity. For example, they have the same id.
+This function should return true if the two records have the
+same identity. For example, they have the same id.
@@ -1217,7 +1215,6 @@ main queue unless stated otherwise in the controller’s initializer).
Invoked before records are updated.
-
@@ -1229,8 +1226,8 @@ main queue unless stated otherwise in the controller’s initializer).
- Invoked for each record that has been added, removed, moved, or updated.
-
+ Invoked for each record that has been added,
+removed, moved, or updated.
@@ -1243,7 +1240,6 @@ main queue unless stated otherwise in the controller’s initializer).
Invoked after records have been updated.
-
@@ -1299,8 +1295,12 @@ main queue unless stated otherwise in the controller’s initializer).
- The value returned from this closure is given to willChange and didChange callbacks, as their fetchedAlongside argument. The closure is guaranteed to see the database in the state it has just after eventual changes to the fetched records have been performed. Use it in order to fetch values that must be consistent with the fetched records.
-
+ The value returned from this closure is given to
+willChange and didChange callbacks, as their
+fetchedAlongside argument. The closure is guaranteed to see the
+database in the state it has just after eventual changes to the
+fetched records have been performed. Use it in order to fetch
+values that must be consistent with the fetched records.
@@ -1313,7 +1313,6 @@ main queue unless stated otherwise in the controller’s initializer).
Invoked before records are updated.
-
@@ -1325,8 +1324,8 @@ main queue unless stated otherwise in the controller’s initializer).
- Invoked for each record that has been added, removed, moved, or updated.
-
+ Invoked for each record that has been added,
+removed, moved, or updated.
@@ -1339,7 +1338,6 @@ main queue unless stated otherwise in the controller’s initializer).
Invoked after records have been updated.
-
@@ -1544,7 +1542,6 @@ main queue unless stated otherwise in the controller’s initializer).
Creates a fetched records controller initialized from a SQL query and
its eventual arguments.
-
let controller = FetchedRecordsController<Wine>(
dbQueue,
sql: "SELECT * FROM wines WHERE color = ? ORDER BY name",
@@ -1554,7 +1551,6 @@ its eventual arguments.
The records are compared by primary key (single-column primary key,
compound primary key, or implicit rowid). For a database table which
has an id primary key, this initializer is equivalent to:
-
// Assuming the wines table has an `id` primary key:
let controller = FetchedRecordsController<Wine>(
dbQueue,
@@ -1585,7 +1581,6 @@ let controller = FetchedRecordsController<Wine>(
A DatabaseWriter (DatabaseQueue, or DatabasePool)
-
@@ -1598,7 +1593,6 @@ let controller = FetchedRecordsController<Wine>(
An SQL query.
-
@@ -1611,7 +1605,6 @@ let controller = FetchedRecordsController<Wine>(
Optional statement arguments.
-
@@ -1624,7 +1617,6 @@ let controller = FetchedRecordsController<Wine>(
Optional RowAdapter
-
@@ -1637,8 +1629,10 @@ let controller = FetchedRecordsController<Wine>(
A serial dispatch queue (defaults to the main queue)
-The fetched records controller tracking callbacks will be notified of changes in this queue. The controller itself must be used from this queue.
+The fetched records controller tracking callbacks will be
+notified of changes in this queue. The controller itself must be
+used from this queue.
@@ -1666,7 +1660,6 @@ let controller = FetchedRecordsController<Wine>(
Creates a fetched records controller initialized from a fetch request
from the Query Interface.
-
let request = Wine.order(Column("name"))
let controller = FetchedRecordsController(
dbQueue,
@@ -1676,7 +1669,6 @@ let controller = FetchedRecordsController(
The records are compared by primary key (single-column primary key,
compound primary key, or implicit rowid). For a database table which
has an id primary key, this initializer is equivalent to:
-
// Assuming the wines table has an `id` primary key:
let controller = FetchedRecordsController<Wine>(
dbQueue,
@@ -1706,7 +1698,6 @@ let controller = FetchedRecordsController<Wine>(
A DatabaseWriter (DatabaseQueue, or DatabasePool)
-
@@ -1719,7 +1710,6 @@ let controller = FetchedRecordsController<Wine>(
A fetch request.
-
@@ -1732,8 +1722,10 @@ let controller = FetchedRecordsController<Wine>(
A serial dispatch queue (defaults to the main queue)
-The fetched records controller tracking callbacks will be notified of changes in this queue. The controller itself must be used from this queue.
+The fetched records controller tracking callbacks will be
+notified of changes in this queue. The controller itself must be
+used from this queue.
@@ -1794,8 +1786,9 @@ let controller = FetchedRecordsController<Wine>(
An index path in the fetched records.
-If indexPath does not describe a valid index path in the fetched records, a fatal error is raised.
+If indexPath does not describe a valid index path in the fetched
+records, a fatal error is raised.
@@ -1885,8 +1878,8 @@ records. In this case, there is a single empty section.
Return Value
- The index path of in the fetched records, or nil if record could not be found.
-
+ The index path of record in the fetched records, or nil
+if record could not be found.
Show on GitHub
@@ -1900,7 +1893,7 @@ records. In this case, there is a single empty section.
diff --git a/docs/0.107.0/Classes/FilterCursor.html b/docs/0.107.0/Classes/FilterCursor.html
index 31299119a..a46376eb7 100644
--- a/docs/0.107.0/Classes/FilterCursor.html
+++ b/docs/0.107.0/Classes/FilterCursor.html
@@ -797,7 +797,7 @@ element exists.
diff --git a/docs/0.107.0/Classes/FlattenCursor.html b/docs/0.107.0/Classes/FlattenCursor.html
index 7eadc9878..d649bae2d 100644
--- a/docs/0.107.0/Classes/FlattenCursor.html
+++ b/docs/0.107.0/Classes/FlattenCursor.html
@@ -799,7 +799,7 @@ element exists.
diff --git a/docs/0.107.0/Classes/IteratorCursor.html b/docs/0.107.0/Classes/IteratorCursor.html
index 230c15f4c..1c13afce7 100644
--- a/docs/0.107.0/Classes/IteratorCursor.html
+++ b/docs/0.107.0/Classes/IteratorCursor.html
@@ -856,7 +856,7 @@ element exists.
diff --git a/docs/0.107.0/Classes/MapCursor.html b/docs/0.107.0/Classes/MapCursor.html
index 46e841577..f79ca4440 100644
--- a/docs/0.107.0/Classes/MapCursor.html
+++ b/docs/0.107.0/Classes/MapCursor.html
@@ -799,7 +799,7 @@ element exists.
diff --git a/docs/0.107.0/Classes/Record.html b/docs/0.107.0/Classes/Record.html
index ba0be7458..d2e79f158 100644
--- a/docs/0.107.0/Classes/Record.html
+++ b/docs/0.107.0/Classes/Record.html
@@ -896,7 +896,6 @@ has been fetched from the database.
This table name is required by the insert, update, save, delete,
and exists methods.
-
class Person : Record {
override class var databaseTableName: String {
return "persons"
@@ -918,7 +917,6 @@ and exists methods.
Return Value
The name of a database table.
-
Show on GitHub
@@ -984,13 +982,11 @@ even if a row was actually inserted without any conflict.
with other columns.
Its default value is false:
-
// SELECT * FROM persons
try Person.fetchAll(db)
When true, the rowid column is fetched:
-
// SELECT *, rowid FROM persons
try Person.fetchAll(db)
@@ -1029,7 +1025,6 @@ try Person.fetchAll(db)
target database table (see Record.databaseTableName()).
In particular, primary key columns, if any, must be included.
-
class Person : Record {
var id: Int64?
var name: String?
@@ -1077,7 +1072,6 @@ dispatch queue, with the inserted RowID and the eventual
INTEGER PRIMARY KEY column name.
The implementation of the base Record class does nothing.
-
class Person : Record {
var id: Int64?
var name: String?
@@ -1110,7 +1104,6 @@ INTEGER PRIMARY KEY column name.
The inserted rowID.
-
@@ -1123,7 +1116,6 @@ INTEGER PRIMARY KEY column name.
The name of the eventual INTEGER PRIMARY KEY column.
-
@@ -1178,7 +1170,6 @@ hasPersistentChangedValues flag.
Return Value
A copy of self.
-
Show on GitHub
@@ -1314,7 +1305,6 @@ returns without error.
Records whose primary key is declared as INTEGER PRIMARY KEY
have
their id automatically set after successful insertion, if it was nil
before the insertion.
-
Throws
A DatabaseError whenever an SQLite error occurs.
@@ -1343,7 +1333,6 @@ before the insertion.
A database connection.
-
@@ -1376,7 +1365,6 @@ to false.
This method is guaranteed to have updated a row in the database if it
returns without error.
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -1407,7 +1395,6 @@ match any row in the database and record could not be updated.
A database connection.
-
@@ -1420,7 +1407,6 @@ match any row in the database and record could not be updated.
The columns to update.
-
@@ -1459,7 +1445,6 @@ to false.
This method is guaranteed to have inserted or updated a row in the
database if it returns without error.
-
Throws
A DatabaseError whenever an SQLite error occurs, or errors
@@ -1489,7 +1474,6 @@ thrown by update().
A database connection.
-
@@ -1519,7 +1503,6 @@ thrown by update().
On success, this method sets the hasPersistentChangedValues flag
to true.
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -1548,7 +1531,6 @@ to true.
A database connection.
-
@@ -1558,7 +1540,6 @@ to true.
Return Value
Whether a database row was deleted.
-
Show on GitHub
@@ -1572,7 +1553,7 @@ to true.
diff --git a/docs/0.107.0/Classes/Row.html b/docs/0.107.0/Classes/Row.html
index f70a6ea5d..1b54b750a 100644
--- a/docs/0.107.0/Classes/Row.html
+++ b/docs/0.107.0/Classes/Row.html
@@ -1745,7 +1745,6 @@ of column-value pairs in self.
Returns a scoped row, if the row was fetched along with a row adapter
that defines this scope.
-
// Two adapters
let fooAdapter = ColumnMapping(["value": "foo"])
let barAdapter = ColumnMapping(["value": "bar"])
@@ -1808,7 +1807,6 @@ if let barRow = row.scopeed(on: "bar") {
Returns a cursor over rows fetched from a prepared statement.
-
let statement = try db.makeSelectStatement("SELECT ...")
let rows = try Row.fetchCursor(statement) // DatabaseCursor<Row>
while let row = try rows.next() { // Row
@@ -1829,7 +1827,6 @@ row for later use: row.copy().
elements are undefined.
The cursor must be iterated in a protected dispath queue.
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -1858,7 +1855,6 @@ elements are undefined.
A database connection.
-
@@ -1871,7 +1867,6 @@ elements are undefined.
An SQL query.
-
@@ -1884,7 +1879,6 @@ elements are undefined.
Optional statement arguments.
-
@@ -1897,7 +1891,6 @@ elements are undefined.
Optional RowAdapter
-
@@ -1907,7 +1900,6 @@ elements are undefined.
Return Value
A cursor over fetched rows.
-
Show on GitHub
@@ -1929,11 +1921,9 @@ elements are undefined.
Returns an array of rows fetched from a prepared statement.
-
let statement = try db.makeSelectStatement("SELECT ...")
let rows = try Row.fetchAll(statement)
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -1962,7 +1952,6 @@ let rows = try Row.fetchAll(statement)
The statement to run.
-
@@ -1975,7 +1964,6 @@ let rows = try Row.fetchAll(statement)
Optional statement arguments.
-
@@ -1988,7 +1976,6 @@ let rows = try Row.fetchAll(statement)
Optional RowAdapter
-
@@ -1998,7 +1985,6 @@ let rows = try Row.fetchAll(statement)
Return Value
An array of rows.
-
Show on GitHub
@@ -2020,11 +2006,9 @@ let rows = try Row.fetchAll(statement)
Returns a single row fetched from a prepared statement.
-
let statement = try db.makeSelectStatement("SELECT ...")
let row = try Row.fetchOne(statement)
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -2053,7 +2037,6 @@ let row = try Row.fetchOne(statement)
The statement to run.
-
@@ -2066,7 +2049,6 @@ let row = try Row.fetchOne(statement)
Optional statement arguments.
-
@@ -2079,7 +2061,6 @@ let row = try Row.fetchOne(statement)
Optional RowAdapter
-
@@ -2089,7 +2070,6 @@ let row = try Row.fetchOne(statement)
Return Value
An optional row.
-
Show on GitHub
@@ -2122,7 +2102,6 @@ let row = try Row.fetchOne(statement)
Returns a cursor over rows fetched from a fetch request.
-
let idColumn = Column("id")
let nameColumn = Column("name")
let request = Person.select(idColumn, nameColumn)
@@ -2145,7 +2124,6 @@ row for later use: row.copy().
elements are undefined.
The cursor must be iterated in a protected dispath queue.
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -2174,7 +2152,6 @@ elements are undefined.
A database connection.
-
@@ -2187,7 +2164,6 @@ elements are undefined.
A fetch request.
-
@@ -2197,7 +2173,6 @@ elements are undefined.
Return Value
A cursor over fetched rows.
-
Show on GitHub
@@ -2219,13 +2194,11 @@ elements are undefined.
Returns an array of rows fetched from a fetch request.
-
let idColumn = Column("id")
let nameColumn = Column("name")
let request = Person.select(idColumn, nameColumn)
let rows = try Row.fetchAll(db, request)
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -2254,7 +2227,6 @@ let rows = try Row.fetchAll(db, request)
A database connection.
-
@@ -2281,13 +2253,11 @@ let rows = try Row.fetchAll(db, request)
Returns a single row fetched from a fetch request.
-
let idColumn = Column("id")
let nameColumn = Column("name")
let request = Person.select(idColumn, nameColumn)
let row = try Row.fetchOne(db, request)
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -2316,7 +2286,6 @@ let row = try Row.fetchOne(db, request)
A database connection.
-
@@ -2354,7 +2323,6 @@ let row = try Row.fetchOne(db, request)
Returns a cursor over rows fetched from an SQL query.
-
let rows = try Row.fetchCursor(db, "SELECT id, name FROM persons") // DatabaseCursor<Row>
while let row = try rows.next() { // Row
let id: Int64 = row.value(atIndex: 0)
@@ -2374,7 +2342,6 @@ row for later use: row.copy().
elements are undefined.
The cursor must be iterated in a protected dispath queue.
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -2403,7 +2370,6 @@ elements are undefined.
A database connection.
-
@@ -2416,7 +2382,6 @@ elements are undefined.
An SQL query.
-
@@ -2429,7 +2394,6 @@ elements are undefined.
Optional statement arguments.
-
@@ -2442,7 +2406,6 @@ elements are undefined.
Optional RowAdapter
-
@@ -2452,7 +2415,6 @@ elements are undefined.
Return Value
A cursor over fetched rows.
-
Show on GitHub
@@ -2474,10 +2436,8 @@ elements are undefined.
Returns an array of rows fetched from an SQL query.
-
let rows = try Row.fetchAll(db, "SELECT ...")
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -2506,7 +2466,6 @@ elements are undefined.
A database connection.
-
@@ -2519,7 +2478,6 @@ elements are undefined.
An SQL query.
-
@@ -2532,7 +2490,6 @@ elements are undefined.
Optional statement arguments.
-
@@ -2545,7 +2502,6 @@ elements are undefined.
Optional RowAdapter
-
@@ -2555,7 +2511,6 @@ elements are undefined.
Return Value
An array of rows.
-
Show on GitHub
@@ -2577,10 +2532,8 @@ elements are undefined.
Returns a single row fetched from an SQL query.
-
let row = try Row.fetchOne(db, "SELECT ...")
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -2609,7 +2562,6 @@ elements are undefined.
A database connection.
-
@@ -2622,7 +2574,6 @@ elements are undefined.
An SQL query.
-
@@ -2635,7 +2586,6 @@ elements are undefined.
Optional statement arguments.
-
@@ -2648,7 +2598,6 @@ elements are undefined.
Optional RowAdapter
-
@@ -2658,7 +2607,6 @@ elements are undefined.
Return Value
An optional row.
-
Show on GitHub
@@ -2685,7 +2633,6 @@ elements are undefined.
Creates a row initialized with elements. Column order is preserved, and
duplicated columns names are allowed.
-
let row: Row = ["foo": 1, "foo": "bar", "baz": nil]
print(row)
// Prints <Row foo:1 foo:"bar" baz:NULL>
@@ -2852,7 +2799,6 @@ print(row)
Returns the position immediately after i.
-
Precondition
(startIndex..<endIndex).contains(i)
@@ -3013,7 +2959,7 @@ in the same order. Columns are compared in a case-sensitive way.
diff --git a/docs/0.107.0/Classes/SelectStatement.html b/docs/0.107.0/Classes/SelectStatement.html
index ef44bf0f5..5a71f44c2 100644
--- a/docs/0.107.0/Classes/SelectStatement.html
+++ b/docs/0.107.0/Classes/SelectStatement.html
@@ -756,7 +756,6 @@
A subclass of Statement that fetches database rows.
You create SelectStatement with the Database.makeSelectStatement() method:
-
try dbQueue.inDatabase { db in
let statement = try db.makeSelectStatement("SELECT COUNT(*) FROM persons WHERE age > ?")
let moreThanTwentyCount = try Int.fetchOne(statement, arguments: [20])!
@@ -959,7 +958,7 @@
diff --git a/docs/0.107.0/Classes/SelectStatement/SelectionInfo.html b/docs/0.107.0/Classes/SelectStatement/SelectionInfo.html
index c65a54fd4..cf043ee34 100644
--- a/docs/0.107.0/Classes/SelectStatement/SelectionInfo.html
+++ b/docs/0.107.0/Classes/SelectStatement/SelectionInfo.html
@@ -795,7 +795,7 @@
diff --git a/docs/0.107.0/Classes/Statement.html b/docs/0.107.0/Classes/Statement.html
index 0ecafd4f9..b72bd3a5c 100644
--- a/docs/0.107.0/Classes/Statement.html
+++ b/docs/0.107.0/Classes/Statement.html
@@ -930,7 +930,7 @@ statement arguments.
diff --git a/docs/0.107.0/Classes/TableAlteration.html b/docs/0.107.0/Classes/TableAlteration.html
index 526b935aa..30985ac58 100644
--- a/docs/0.107.0/Classes/TableAlteration.html
+++ b/docs/0.107.0/Classes/TableAlteration.html
@@ -757,7 +757,6 @@
You don’t create instances of this class. Instead, you use the Database
alter(table:) method:
-
try db.alter(table: "persons") { t in // t is TableAlteration
t.add(column: ...)
}
@@ -783,7 +782,6 @@
Appends a column to the table.
-
try db.alter(table: "persons") { t in
t.add(column: "url", .text)
}
@@ -813,7 +811,6 @@
the column name.
-
@@ -826,7 +823,6 @@
the column type.
-
@@ -835,8 +831,8 @@
Return Value
- An ColumnDefinition that allows you to refine the column definition.
-
+ An ColumnDefinition that allows you to refine the
+column definition.
Show on GitHub
@@ -850,7 +846,7 @@
diff --git a/docs/0.107.0/Classes/TableDefinition.html b/docs/0.107.0/Classes/TableDefinition.html
index 82103c34a..6a63953bd 100644
--- a/docs/0.107.0/Classes/TableDefinition.html
+++ b/docs/0.107.0/Classes/TableDefinition.html
@@ -757,7 +757,6 @@
You don’t create instances of this class. Instead, you use the Database
create(table:) method:
-
try db.create(table: "persons") { t in // t is TableDefinition
t.column(...)
}
@@ -783,7 +782,6 @@
Appends a table column.
-
try db.create(table: "persons") { t in
t.column("name", .text)
}
@@ -813,7 +811,6 @@
the column name.
-
@@ -826,7 +823,6 @@
the column type.
-
@@ -835,8 +831,8 @@
Return Value
- An ColumnDefinition that allows you to refine the column definition.
-
+ An ColumnDefinition that allows you to refine the
+column definition.
Show on GitHub
@@ -858,7 +854,6 @@
Defines the table primary key.
-
try db.create(table: "citizenships") { t in
t.column("personID", .integer)
t.column("countryCode", .text)
@@ -891,7 +886,6 @@
The primary key columns.
-
@@ -903,8 +897,8 @@
- An optional conflict resolution (see https://www.sqlite.org/lang_conflict.html).
-
+ An optional conflict resolution
+(see https://www.sqlite.org/lang_conflict.html).
@@ -931,7 +925,6 @@
Adds a unique key.
-
try db.create(table: "pointOfInterests") { t in
t.column("latitude", .double)
t.column("longitude", .double)
@@ -963,7 +956,6 @@
The unique key columns.
-
@@ -975,8 +967,8 @@
- An optional conflict resolution (see https://www.sqlite.org/lang_conflict.html).
-
+ An optional conflict resolution
+(see https://www.sqlite.org/lang_conflict.html).
@@ -1003,7 +995,6 @@
Adds a foreign key.
-
try db.create(table: "passport") { t in
t.column("issueDate", .date)
t.column("personID", .integer)
@@ -1036,7 +1027,6 @@
The foreign key columns.
-
@@ -1049,7 +1039,6 @@
The referenced table.
-
@@ -1061,8 +1050,9 @@
- The columns in the referenced table. If not specified, the columns of the primary key of the referenced table are used.
-
+ The columns in the referenced table. If not
+specified, the columns of the primary key of the referenced table
+are used.
@@ -1075,7 +1065,6 @@
Optional action when the referenced row is deleted.
-
@@ -1088,7 +1077,6 @@
Optional action when the referenced row is updated.
-
@@ -1100,8 +1088,8 @@
- If true, defines a deferred foreign key constraint. See https://www.sqlite.org/foreignkeys.html#fk_deferred.
-
+ If true, defines a deferred foreign key constraint.
+See https://www.sqlite.org/foreignkeys.html#fk_deferred.
@@ -1128,7 +1116,6 @@
Adds a CHECK constraint.
-
try db.create(table: "persons") { t in
t.column("personalPhone", .text)
t.column("workPhone", .text)
@@ -1162,7 +1149,6 @@
The checked condition
-
@@ -1189,7 +1175,6 @@
Adds a CHECK constraint.
-
try db.create(table: "persons") { t in
t.column("personalPhone", .text)
t.column("workPhone", .text)
@@ -1221,7 +1206,6 @@
An SQL snippet
-
@@ -1240,7 +1224,7 @@
diff --git a/docs/0.107.0/Classes/UpdateStatement.html b/docs/0.107.0/Classes/UpdateStatement.html
index 380345b1c..03ca6aa5f 100644
--- a/docs/0.107.0/Classes/UpdateStatement.html
+++ b/docs/0.107.0/Classes/UpdateStatement.html
@@ -756,7 +756,6 @@
A subclass of Statement that executes SQL queries.
You create UpdateStatement with the Database.makeUpdateStatement() method:
-
try dbQueue.inTransaction { db in
let statement = try db.makeUpdateStatement("INSERT INTO persons (name) VALUES (?)")
try statement.execute(arguments: ["Arthur"])
@@ -783,7 +782,6 @@
Executes the SQL query.
-
Throws
A DatabaseError whenever an SQLite error occurs.
@@ -812,7 +810,6 @@
Statement arguments.
-
@@ -831,7 +828,7 @@
diff --git a/docs/0.107.0/Enums.html b/docs/0.107.0/Enums.html
index f57982dc4..b01997121 100644
--- a/docs/0.107.0/Enums.html
+++ b/docs/0.107.0/Enums.html
@@ -929,7 +929,7 @@ Do not use it directly.
diff --git a/docs/0.107.0/Enums/DatabaseEventKind.html b/docs/0.107.0/Enums/DatabaseEventKind.html
index 9d7ce3567..203f50d51 100644
--- a/docs/0.107.0/Enums/DatabaseEventKind.html
+++ b/docs/0.107.0/Enums/DatabaseEventKind.html
@@ -935,7 +935,7 @@ by selectionInfo.
diff --git a/docs/0.107.0/Enums/FetchedRecordChange.html b/docs/0.107.0/Enums/FetchedRecordChange.html
index ec3c2da0c..c4af5c58a 100644
--- a/docs/0.107.0/Enums/FetchedRecordChange.html
+++ b/docs/0.107.0/Enums/FetchedRecordChange.html
@@ -938,7 +938,7 @@ been changed.
diff --git a/docs/0.107.0/Enums/PersistenceError.html b/docs/0.107.0/Enums/PersistenceError.html
index c93912383..0d777499a 100644
--- a/docs/0.107.0/Enums/PersistenceError.html
+++ b/docs/0.107.0/Enums/PersistenceError.html
@@ -830,7 +830,7 @@ found in the database.
diff --git a/docs/0.107.0/Enums/SQLCount.html b/docs/0.107.0/Enums/SQLCount.html
index 452f2592c..a5cc239e0 100644
--- a/docs/0.107.0/Enums/SQLCount.html
+++ b/docs/0.107.0/Enums/SQLCount.html
@@ -832,7 +832,7 @@ Do not use it directly.
diff --git a/docs/0.107.0/Extensions.html b/docs/0.107.0/Extensions.html
index 7127df586..82b0c3c1a 100644
--- a/docs/0.107.0/Extensions.html
+++ b/docs/0.107.0/Extensions.html
@@ -1608,7 +1608,7 @@
diff --git a/docs/0.107.0/Extensions/Array.html b/docs/0.107.0/Extensions/Array.html
index 0481b69ef..7dbe159ed 100644
--- a/docs/0.107.0/Extensions/Array.html
+++ b/docs/0.107.0/Extensions/Array.html
@@ -772,7 +772,6 @@
Creates an array containing the elements of a cursor.
-
let cursor = try String.fetchCursor(db, "SELECT 'foo' UNION ALL SELECT 'bar'")
let strings = try Array(cursor) // ["foo", "bar"]
@@ -798,7 +797,7 @@ let strings = try Array(cursor) // ["foo", "bar"]
diff --git a/docs/0.107.0/Extensions/Bool.html b/docs/0.107.0/Extensions/Bool.html
index f02d66cbd..df8868ea0 100644
--- a/docs/0.107.0/Extensions/Bool.html
+++ b/docs/0.107.0/Extensions/Bool.html
@@ -795,7 +795,6 @@
A pointer to an SQLite statement.
-
@@ -808,7 +807,6 @@
The column index.
-
@@ -887,7 +885,7 @@
diff --git a/docs/0.107.0/Extensions/CGFloat.html b/docs/0.107.0/Extensions/CGFloat.html
index b4961309b..a48d4aec9 100644
--- a/docs/0.107.0/Extensions/CGFloat.html
+++ b/docs/0.107.0/Extensions/CGFloat.html
@@ -819,7 +819,7 @@
diff --git a/docs/0.107.0/Extensions/ClosedRange.html b/docs/0.107.0/Extensions/ClosedRange.html
index 6fa0e9044..348a2ca87 100644
--- a/docs/0.107.0/Extensions/ClosedRange.html
+++ b/docs/0.107.0/Extensions/ClosedRange.html
@@ -772,7 +772,6 @@
An SQL expression that checks the inclusion of an expression in a range.
-
// email BETWEEN 'A' AND 'B'
("A"..."B").contains(Column("email"))
@@ -806,7 +805,6 @@
An SQL expression that checks the inclusion of an expression in a range.
-
// email BETWEEN 'A' AND 'B' COLLATE NOCASE
("A"..."B").contains(Column("email").collating(.nocase))
@@ -832,7 +830,7 @@
diff --git a/docs/0.107.0/Extensions/Column.html b/docs/0.107.0/Extensions/Column.html
index 739af5d75..64a48209e 100644
--- a/docs/0.107.0/Extensions/Column.html
+++ b/docs/0.107.0/Extensions/Column.html
@@ -778,7 +778,7 @@
diff --git a/docs/0.107.0/Extensions/CountableClosedRange.html b/docs/0.107.0/Extensions/CountableClosedRange.html
index dd7b7832d..5878670f8 100644
--- a/docs/0.107.0/Extensions/CountableClosedRange.html
+++ b/docs/0.107.0/Extensions/CountableClosedRange.html
@@ -772,7 +772,6 @@
An SQL expression that checks the inclusion of an expression in a range.
-
// id BETWEEN 1 AND 10
(1...10).contains(Column("id"))
@@ -798,7 +797,7 @@
diff --git a/docs/0.107.0/Extensions/CountableRange.html b/docs/0.107.0/Extensions/CountableRange.html
index f39a203da..65f2d1fde 100644
--- a/docs/0.107.0/Extensions/CountableRange.html
+++ b/docs/0.107.0/Extensions/CountableRange.html
@@ -772,7 +772,6 @@
An SQL expression that checks the inclusion of an expression in a range.
-
// id BETWEEN 1 AND 9
(1..<10).contains(Column("id"))
@@ -798,7 +797,7 @@
diff --git a/docs/0.107.0/Extensions/Data.html b/docs/0.107.0/Extensions/Data.html
index b5783ecca..1da2f913e 100644
--- a/docs/0.107.0/Extensions/Data.html
+++ b/docs/0.107.0/Extensions/Data.html
@@ -820,7 +820,7 @@ a Blob.
diff --git a/docs/0.107.0/Extensions/Database.html b/docs/0.107.0/Extensions/Database.html
index 3ea9a160e..79a17ad56 100644
--- a/docs/0.107.0/Extensions/Database.html
+++ b/docs/0.107.0/Extensions/Database.html
@@ -831,7 +831,7 @@
diff --git a/docs/0.107.0/Extensions/DatabasePool.html b/docs/0.107.0/Extensions/DatabasePool.html
index 7520581fe..85e13f6e8 100644
--- a/docs/0.107.0/Extensions/DatabasePool.html
+++ b/docs/0.107.0/Extensions/DatabasePool.html
@@ -808,7 +808,7 @@
diff --git a/docs/0.107.0/Extensions/DatabaseQueue.html b/docs/0.107.0/Extensions/DatabaseQueue.html
index 6a1d59c95..40765de8f 100644
--- a/docs/0.107.0/Extensions/DatabaseQueue.html
+++ b/docs/0.107.0/Extensions/DatabaseQueue.html
@@ -808,7 +808,7 @@
diff --git a/docs/0.107.0/Extensions/Double.html b/docs/0.107.0/Extensions/Double.html
index f0972cd08..dce0f00b7 100644
--- a/docs/0.107.0/Extensions/Double.html
+++ b/docs/0.107.0/Extensions/Double.html
@@ -795,7 +795,6 @@
A pointer to an SQLite statement.
-
@@ -808,7 +807,6 @@
The column index.
-
@@ -887,7 +885,7 @@
diff --git a/docs/0.107.0/Extensions/Float.html b/docs/0.107.0/Extensions/Float.html
index 7d04e15a2..ca59c6660 100644
--- a/docs/0.107.0/Extensions/Float.html
+++ b/docs/0.107.0/Extensions/Float.html
@@ -795,7 +795,6 @@
A pointer to an SQLite statement.
-
@@ -808,7 +807,6 @@
The column index.
-
@@ -887,7 +885,7 @@
diff --git a/docs/0.107.0/Extensions/Int.html b/docs/0.107.0/Extensions/Int.html
index 55662dd4f..1160abf5a 100644
--- a/docs/0.107.0/Extensions/Int.html
+++ b/docs/0.107.0/Extensions/Int.html
@@ -795,7 +795,6 @@
A pointer to an SQLite statement.
-
@@ -808,7 +807,6 @@
The column index.
-
@@ -887,7 +885,7 @@
diff --git a/docs/0.107.0/Extensions/Int32.html b/docs/0.107.0/Extensions/Int32.html
index 7635fd482..a332b717e 100644
--- a/docs/0.107.0/Extensions/Int32.html
+++ b/docs/0.107.0/Extensions/Int32.html
@@ -795,7 +795,6 @@
A pointer to an SQLite statement.
-
@@ -808,7 +807,6 @@
The column index.
-
@@ -887,7 +885,7 @@
diff --git a/docs/0.107.0/Extensions/Int64.html b/docs/0.107.0/Extensions/Int64.html
index fe543176c..277283a38 100644
--- a/docs/0.107.0/Extensions/Int64.html
+++ b/docs/0.107.0/Extensions/Int64.html
@@ -795,7 +795,6 @@
A pointer to an SQLite statement.
-
@@ -808,7 +807,6 @@
The column index.
-
@@ -887,7 +885,7 @@
diff --git a/docs/0.107.0/Extensions/NSData.html b/docs/0.107.0/Extensions/NSData.html
index 62894e445..80cbcba6c 100644
--- a/docs/0.107.0/Extensions/NSData.html
+++ b/docs/0.107.0/Extensions/NSData.html
@@ -825,7 +825,7 @@ a Blob.
diff --git a/docs/0.107.0/Extensions/NSDate.html b/docs/0.107.0/Extensions/NSDate.html
index 765f2643e..63d2da583 100644
--- a/docs/0.107.0/Extensions/NSDate.html
+++ b/docs/0.107.0/Extensions/NSDate.html
@@ -819,7 +819,7 @@
diff --git a/docs/0.107.0/Extensions/NSNull.html b/docs/0.107.0/Extensions/NSNull.html
index ac368ed59..9f118e2d8 100644
--- a/docs/0.107.0/Extensions/NSNull.html
+++ b/docs/0.107.0/Extensions/NSNull.html
@@ -819,7 +819,7 @@
diff --git a/docs/0.107.0/Extensions/NSNumber.html b/docs/0.107.0/Extensions/NSNumber.html
index 4853ef239..75b98bf94 100644
--- a/docs/0.107.0/Extensions/NSNumber.html
+++ b/docs/0.107.0/Extensions/NSNumber.html
@@ -819,7 +819,7 @@
diff --git a/docs/0.107.0/Extensions/NSString.html b/docs/0.107.0/Extensions/NSString.html
index c1388629a..e349598ca 100644
--- a/docs/0.107.0/Extensions/NSString.html
+++ b/docs/0.107.0/Extensions/NSString.html
@@ -819,7 +819,7 @@
diff --git a/docs/0.107.0/Extensions/NSURL.html b/docs/0.107.0/Extensions/NSURL.html
index b54e45d5d..cafac0aaa 100644
--- a/docs/0.107.0/Extensions/NSURL.html
+++ b/docs/0.107.0/Extensions/NSURL.html
@@ -820,7 +820,7 @@
diff --git a/docs/0.107.0/Extensions/NSUUID.html b/docs/0.107.0/Extensions/NSUUID.html
index 4982b1ca3..741ad4be8 100644
--- a/docs/0.107.0/Extensions/NSUUID.html
+++ b/docs/0.107.0/Extensions/NSUUID.html
@@ -819,7 +819,7 @@
diff --git a/docs/0.107.0/Extensions/Optional.html b/docs/0.107.0/Extensions/Optional.html
index c4e40f1b1..ceb020718 100644
--- a/docs/0.107.0/Extensions/Optional.html
+++ b/docs/0.107.0/Extensions/Optional.html
@@ -779,7 +779,6 @@
Returns a cursor over optional values fetched from a prepared statement.
-
let statement = try db.makeSelectStatement("SELECT name FROM ...")
let names = try Optional<String>.fetchCursor(statement) // DatabaseCursor<String?>
while let name = try names.next() { // String?
@@ -791,7 +790,6 @@ while let name = try names.next() { // String?
elements are undefined.
The cursor must be iterated in a protected dispath queue.
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -820,7 +818,6 @@ elements are undefined.
The statement to run.
-
@@ -833,7 +830,6 @@ elements are undefined.
Optional statement arguments.
-
@@ -846,7 +842,6 @@ elements are undefined.
Optional RowAdapter
-
@@ -856,7 +851,6 @@ elements are undefined.
Return Value
A cursor over fetched optional values.
-
Show on GitHub
@@ -878,11 +872,9 @@ elements are undefined.
Returns an array of optional values fetched from a prepared statement.
-
let statement = try db.makeSelectStatement("SELECT name FROM ...")
let names = try Optional<String>.fetchAll(statement) // [String?]
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -911,7 +903,6 @@ let names = try Optional<String>.fetchAll(statement) // [String?]
The statement to run.
-
@@ -924,7 +915,6 @@ let names = try Optional<String>.fetchAll(statement) // [String?]
Optional statement arguments.
-
@@ -937,7 +927,6 @@ let names = try Optional<String>.fetchAll(statement) // [String?]
Optional RowAdapter
-
@@ -947,7 +936,6 @@ let names = try Optional<String>.fetchAll(statement) // [String?]
Return Value
An array of optional values.
-
Show on GitHub
@@ -980,7 +968,6 @@ let names = try Optional<String>.fetchAll(statement) // [String?]
Returns a cursor over optional values fetched from a fetch request.
-
let nameColumn = Column("name")
let request = Person.select(nameColumn)
let names = try Optional<String>.fetchCursor(db, request) // DatabaseCursor<String?>
@@ -993,7 +980,6 @@ while let name = try names.next() { // String?
elements are undefined.
The cursor must be iterated in a protected dispath queue.
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -1022,7 +1008,6 @@ elements are undefined.
A database connection.
-
@@ -1035,7 +1020,6 @@ elements are undefined.
A fetch request.
-
@@ -1045,7 +1029,6 @@ elements are undefined.
Return Value
A cursor over fetched optional values.
-
Show on GitHub
@@ -1067,12 +1050,10 @@ elements are undefined.
Returns an array of optional values fetched from a fetch request.
-
let nameColumn = Column("name")
let request = Person.select(nameColumn)
let names = try Optional<String>.fetchAll(db, request) // [String?]
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -1101,7 +1082,6 @@ let names = try Optional<String>.fetchAll(db, request) // [String?]
A database connection.
-
@@ -1139,7 +1119,6 @@ let names = try Optional<String>.fetchAll(db, request) // [String?]
Returns a cursor over optional values fetched from an SQL query.
-
let names = try Optional<String>.fetchCursor(db, "SELECT name FROM ...") // DatabaseCursor<String?>
while let name = try names.next() { // String?
...
@@ -1150,7 +1129,6 @@ while let name = try names.next() { // String?
elements are undefined.
The cursor must be iterated in a protected dispath queue.
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -1179,7 +1157,6 @@ elements are undefined.
A database connection.
-
@@ -1192,7 +1169,6 @@ elements are undefined.
An SQL query.
-
@@ -1205,7 +1181,6 @@ elements are undefined.
Optional statement arguments.
-
@@ -1218,7 +1193,6 @@ elements are undefined.
Optional RowAdapter
-
@@ -1228,7 +1202,6 @@ elements are undefined.
Return Value
A cursor over fetched optional values.
-
Show on GitHub
@@ -1250,10 +1223,8 @@ elements are undefined.
Returns an array of optional values fetched from an SQL query.
-
let names = try String.fetchAll(db, "SELECT name FROM ...") // [String?]
-
Throws
A DatabaseError is thrown whenever an SQLite error occurs.
@@ -1282,7 +1253,6 @@ elements are undefined.
A database connection.
-
@@ -1295,7 +1265,6 @@ elements are undefined.
An SQL query.
-
@@ -1307,8 +1276,7 @@ elements are undefined.
- Optional statement arguments.
-
+
@@ -1321,7 +1289,6 @@ elements are undefined.
Optional RowAdapter
-
@@ -1331,7 +1298,6 @@ elements are undefined.
Return Value
An array of optional values.
-
Show on GitHub
@@ -1345,7 +1311,7 @@ elements are undefined.
diff --git a/docs/0.107.0/Extensions/QueryInterfaceRequest.html b/docs/0.107.0/Extensions/QueryInterfaceRequest.html
index f01c4994e..90e5abd7c 100644
--- a/docs/0.107.0/Extensions/QueryInterfaceRequest.html
+++ b/docs/0.107.0/Extensions/QueryInterfaceRequest.html
@@ -785,7 +785,7 @@
diff --git a/docs/0.107.0/Extensions/Range.html b/docs/0.107.0/Extensions/Range.html
index 939459286..798c83188 100644
--- a/docs/0.107.0/Extensions/Range.html
+++ b/docs/0.107.0/Extensions/Range.html
@@ -772,7 +772,6 @@
An SQL expression that checks the inclusion of an expression in a range.
-
// email >= 'A' AND email < 'B'
("A"..<"B").contains(Column("email"))
@@ -806,7 +805,6 @@
An SQL expression that checks the inclusion of an expression in a range.
-
// email >= 'A' COLLATE NOCASE AND email < 'B' COLLATE NOCASE
("A"..<"B").contains(Column("email").collating(.nocase))
@@ -832,7 +830,7 @@
diff --git a/docs/0.107.0/Extensions/RawRepresentable.html b/docs/0.107.0/Extensions/RawRepresentable.html
index 8da631080..f67d3a31c 100644
--- a/docs/0.107.0/Extensions/RawRepresentable.html
+++ b/docs/0.107.0/Extensions/RawRepresentable.html
@@ -824,7 +824,7 @@
diff --git a/docs/0.107.0/Extensions/ReferenceConvertible.html b/docs/0.107.0/Extensions/ReferenceConvertible.html
index d0cc742bd..3a5935704 100644
--- a/docs/0.107.0/Extensions/ReferenceConvertible.html
+++ b/docs/0.107.0/Extensions/ReferenceConvertible.html
@@ -824,7 +824,7 @@
diff --git a/docs/0.107.0/Extensions/Sequence.html b/docs/0.107.0/Extensions/Sequence.html
index c4927fec2..3bd58230c 100644
--- a/docs/0.107.0/Extensions/Sequence.html
+++ b/docs/0.107.0/Extensions/Sequence.html
@@ -808,7 +808,6 @@ over self.
An SQL expression that checks the inclusion of an expression in
a sequence.
-
// id IN (1,2,3)
[1, 2, 3].contains(Column("id"))
@@ -843,7 +842,6 @@ a sequence.
An SQL expression that checks the inclusion of an expression in
a sequence.
-
// name IN ('A', 'B') COLLATE NOCASE
["A", "B"].contains(Column("name").collating(.nocase))
@@ -869,7 +867,7 @@ a sequence.
diff --git a/docs/0.107.0/Extensions/String.html b/docs/0.107.0/Extensions/String.html
index 2cd6d76ea..81c170b73 100644
--- a/docs/0.107.0/Extensions/String.html
+++ b/docs/0.107.0/Extensions/String.html
@@ -795,7 +795,6 @@
A pointer to an SQLite statement.
-
@@ -808,7 +807,6 @@
The column index.
-
@@ -900,7 +898,6 @@
Returns the receiver, quoted for safe insertion as an identifier in an
SQL query.
-
db.execute("SELECT * FROM \(tableName.quotedDatabaseIdentifier)")
@@ -925,7 +922,7 @@ SQL query.
diff --git a/docs/0.107.0/Extensions/TableMapping.html b/docs/0.107.0/Extensions/TableMapping.html
index 85a320111..25de2f999 100644
--- a/docs/0.107.0/Extensions/TableMapping.html
+++ b/docs/0.107.0/Extensions/TableMapping.html
@@ -785,7 +785,7 @@
diff --git a/docs/0.107.0/Functions.html b/docs/0.107.0/Functions.html
index 3c228fd25..cc29ee9c7 100644
--- a/docs/0.107.0/Functions.html
+++ b/docs/0.107.0/Functions.html
@@ -773,7 +773,6 @@
Returns an expression that evaluates the ABS SQL function.
-
// ABS(amount)
abs(Column("amount"))
@@ -818,7 +817,6 @@ abs(Column("amount"))
Returns an expression that evaluates the AVG SQL function.
-
// AVG(length)
average(Column("length"))
@@ -863,7 +861,6 @@ average(Column("length"))
Returns an expression that evaluates the COUNT SQL function.
-
// COUNT(email)
count(Column("email"))
@@ -908,7 +905,6 @@ count(Column("email"))
Returns an expression that evaluates the COUNT(DISTINCT) SQL function.
-
// COUNT(DISTINCT email)
count(distinct: Column("email"))
@@ -953,7 +949,6 @@ count(distinct: Column("email"))
Returns an expression that evaluates the IFNULL SQL function.
-
// IFNULL(name, 'Anonymous')
Column("name") ?? "Anonymous"
@@ -998,7 +993,6 @@ Column("name") ?? "Anonymous"
Returns an expression that evaluates the LENGTH SQL function.
-
// LENGTH(name)
length(Column("name"))
@@ -1043,7 +1037,6 @@ length(Column("name"))
Returns an expression that evaluates the MAX SQL function.
-
// MAX(score)
max(Column("score"))
@@ -1088,7 +1081,6 @@ max(Column("score"))
Returns an expression that evaluates the MIN SQL function.
-
// MIN(score)
min(Column("score"))
@@ -1133,7 +1125,6 @@ min(Column("score"))
Returns an expression that evaluates the SUM SQL function.
-
// SUM(amount)
sum(Column("amount"))
@@ -1178,13 +1169,11 @@ sum(Column("amount"))
An SQL expression that compares two expressions with the = SQL operator.
-
// name = 'Arthur'
Column("name") == "Arthur"
When the right operand is nil, IS NULL is used instead.
-
// name IS NULL
Column("name") == nil
@@ -1218,13 +1207,11 @@ Column("name") == nil
An SQL expression that compares two expressions with the = SQL operator.
-
// name = 'Arthur' COLLATE NOCASE
Column("name").collating(.nocase) == "Arthur"
When the right operand is nil, IS NULL is used instead.
-
// name IS NULL
Column("name").collating(.nocase) == nil
@@ -1260,7 +1247,6 @@ Column("name").collating(.nocase) == nil
An SQL expression that checks the boolean value of an expression.
The comparison is done with the built-in boolean evaluation of SQLite:
-
// validated
Column("validated") == true
@@ -1297,13 +1283,11 @@ Column("validated") == false
An SQL expression that compares two expressions with the = SQL operator.
-
// 'Arthur' = name
"Arthur" == Column("name")
When the left operand is nil, IS NULL is used instead.
-
// name IS NULL
nil == Column("name")
@@ -1337,13 +1321,11 @@ nil == Column("name")
An SQL expression that compares two expressions with the = SQL operator.
-
// 'Arthur' = name COLLATE NOCASE
"Arthur" == Column("name").collating(.nocase)
When the left operand is nil, IS NULL is used instead.
-
// name IS NULL
nil == Column("name").collating(.nocase)
@@ -1379,7 +1361,6 @@ nil == Column("name").collating(.nocase)
An SQL expression that checks the boolean value of an expression.
The comparison is done with the built-in boolean evaluation of SQLite:
-
// validated
true == Column("validated")
@@ -1416,7 +1397,6 @@ false == Column("validated")
An SQL expression that compares two expressions with the = SQL operator.
-
// email = login
Column("email") == Column("login")
@@ -1450,13 +1430,11 @@ Column("email") == Column("login")
An SQL expression that compares two expressions with the <> SQL operator.
-
// name <> 'Arthur'
Column("name") != "Arthur"
When the right operand is nil, IS NOT NULL is used instead.
-
// name IS NOT NULL
Column("name") != nil
@@ -1490,13 +1468,11 @@ Column("name") != nil
An SQL expression that compares two expressions with the <> SQL operator.
-
// name <> 'Arthur' COLLATE NOCASE
Column("name").collating(.nocase) != "Arthur"
When the right operand is nil, IS NOT NULL is used instead.
-
// name IS NOT NULL
Column("name").collating(.nocase) != nil
@@ -1532,7 +1508,6 @@ Column("name").collating(.nocase) != nil
An SQL expression that checks the boolean value of an expression.
The comparison is done with the built-in boolean evaluation of SQLite:
-
// NOT validated
Column("validated") != true
@@ -1569,13 +1544,11 @@ Column("validated") != false
An SQL expression that compares two expressions with the <> SQL operator.
-
// 'Arthur' <> name
"Arthur" != Column("name")
When the left operand is nil, IS NOT NULL is used instead.
-
// name IS NOT NULL
nil != Column("name")
@@ -1609,13 +1582,11 @@ nil != Column("name")
An SQL expression that compares two expressions with the <> SQL operator.
-
// 'Arthur' <> name COLLATE NOCASE
"Arthur" != Column("name").collating(.nocase)
When the left operand is nil, IS NOT NULL is used instead.
-
// name IS NOT NULL
nil != Column("name").collating(.nocase)
@@ -1651,7 +1622,6 @@ nil != Column("name").collating(.nocase)
An SQL expression that checks the boolean value of an expression.
The comparison is done with the built-in boolean evaluation of SQLite:
-
// NOT validated
true != Column("validated")
@@ -1688,7 +1658,6 @@ false != Column("validated")
An SQL expression that compares two expressions with the <> SQL operator.
-
// email <> login
Column("email") != Column("login")
@@ -1722,7 +1691,6 @@ Column("email") != Column("login")
An SQL expression that compares two expressions with the IS SQL operator.
-
// name IS 'Arthur'
Column("name") === "Arthur"
@@ -1756,7 +1724,6 @@ Column("name") === "Arthur"
An SQL expression that compares two expressions with the IS SQL operator.
-
// name IS 'Arthur' COLLATE NOCASE
Column("name").collating(.nocase) === "Arthur"
@@ -1790,7 +1757,6 @@ Column("name").collating(.nocase) === "Arthur"
An SQL expression that compares two expressions with the IS SQL operator.
-
// name IS 'Arthur'
"Arthur" === Column("name")
@@ -1824,7 +1790,6 @@ Column("name").collating(.nocase) === "Arthur"
An SQL expression that compares two expressions with the IS SQL operator.
-
// name IS 'Arthur' COLLATE NOCASE
"Arthur" === Column("name").collating(.nocase)
@@ -1858,7 +1823,6 @@ Column("name").collating(.nocase) === "Arthur"
An SQL expression that compares two expressions with the IS SQL operator.
-
// email IS login
Column("email") === Column("login")
@@ -1892,7 +1856,6 @@ Column("email") === Column("login")
An SQL expression that compares two expressions with the IS NOT SQL operator.
-
// name IS NOT 'Arthur'
Column("name") !== "Arthur"
@@ -1926,7 +1889,6 @@ Column("name") !== "Arthur"
An SQL expression that compares two expressions with the IS NOT SQL operator.
-
// name IS NOT 'Arthur' COLLATE NOCASE
Column("name").collating(.nocase) !== "Arthur"
@@ -1960,7 +1922,6 @@ Column("name").collating(.nocase) !== "Arthur"
An SQL expression that compares two expressions with the IS NOT SQL operator.
-
// name IS NOT 'Arthur'
"Arthur" !== Column("name")
@@ -1994,7 +1955,6 @@ Column("name").collating(.nocase) !== "Arthur"
An SQL expression that compares two expressions with the IS NOT SQL operator.
-
// name IS NOT 'Arthur' COLLATE NOCASE
"Arthur" !== Column("name").collating(.nocase)
@@ -2028,7 +1988,6 @@ Column("name").collating(.nocase) !== "Arthur"
An SQL expression that compares two expressions with the IS NOT SQL operator.
-
// email IS NOT login
Column("email") !== Column("login")
@@ -2073,7 +2032,6 @@ Column("email") !== Column("login")
An SQL expression that compares two expressions with the < SQL operator.
-
// age < 18
Column("age") < 18
@@ -2107,7 +2065,6 @@ Column("age") < 18
An SQL expression that compares two expressions with the < SQL operator.
-
// name < 'Arthur' COLLATE NOCASE
Column("name").collating(.nocase) < "Arthur"
@@ -2141,7 +2098,6 @@ Column("name").collating(.nocase) < "Arthur"
An SQL expression that compares two expressions with the < SQL operator.
-
// 18 < age
18 < Column("age")
@@ -2175,7 +2131,6 @@ Column("name").collating(.nocase) < "Arthur"
An SQL expression that compares two expressions with the < SQL operator.
-
// 'Arthur' < name COLLATE NOCASE
"Arthur" < Column("name").collating(.nocase)
@@ -2209,7 +2164,6 @@ Column("name").collating(.nocase) < "Arthur"
An SQL expression that compares two expressions with the < SQL operator.
-
// width < height
Column("width") < Column("height")
@@ -2243,7 +2197,6 @@ Column("width") < Column("height")
An SQL expression that compares two expressions with the <= SQL operator.
-
// age <= 18
Column("age") <= 18
@@ -2277,7 +2230,6 @@ Column("age") <= 18
An SQL expression that compares two expressions with the <= SQL operator.
-
// name <= 'Arthur' COLLATE NOCASE
Column("name").collating(.nocase) <= "Arthur"
@@ -2311,7 +2263,6 @@ Column("name").collating(.nocase) <= "Arthur"
An SQL expression that compares two expressions with the <= SQL operator.
-
// 18 <= age
18 <= Column("age")
@@ -2345,7 +2296,6 @@ Column("name").collating(.nocase) <= "Arthur"
An SQL expression that compares two expressions with the <= SQL operator.
-
// 'Arthur' <= name COLLATE NOCASE
"Arthur" <= Column("name").collating(.nocase)
@@ -2379,7 +2329,6 @@ Column("name").collating(.nocase) <= "Arthur"
An SQL expression that compares two expressions with the <= SQL operator.
-
// width <= height
Column("width") <= Column("height")
@@ -2413,7 +2362,6 @@ Column("width") <= Column("height")
An SQL expression that compares two expressions with the > SQL operator.
-
// age > 18
Column("age") > 18
@@ -2447,7 +2395,6 @@ Column("age") > 18
An SQL expression that compares two expressions with the > SQL operator.
-
// age > 'Arthur' COLLATE NOCASE
Column("name").collating(.nocase) > "Arthur"
@@ -2481,7 +2428,6 @@ Column("name").collating(.nocase) > "Arthur"
An SQL expression that compares two expressions with the > SQL operator.
-
// 18 > age
18 > Column("age")
@@ -2515,7 +2461,6 @@ Column("name").collating(.nocase) > "Arthur"
An SQL expression that compares two expressions with the > SQL operator.
-
// 'Arthur' > name COLLATE NOCASE
"Arthur" > Column("name").collating(.nocase)
@@ -2549,7 +2494,6 @@ Column("name").collating(.nocase) > "Arthur"
An SQL expression that compares two expressions with the > SQL operator.
-
// width > height
Column("width") > Column("height")
@@ -2583,7 +2527,6 @@ Column("width") > Column("height")
An SQL expression that compares two expressions with the >= SQL operator.
-
// age >= 18
Column("age") >= 18
@@ -2617,7 +2560,6 @@ Column("age") >= 18
An SQL expression that compares two expressions with the >= SQL operator.
-
// name >= 'Arthur' COLLATE NOCASE
Column("name").collating(.nocase) >= "Arthur"
@@ -2651,7 +2593,6 @@ Column("name").collating(.nocase) >= "Arthur"
An SQL expression that compares two expressions with the >= SQL operator.
-
// 18 >= age
18 >= Column("age")
@@ -2685,7 +2626,6 @@ Column("name").collating(.nocase) >= "Arthur"
An SQL expression that compares two expressions with the >= SQL operator.
-
// 'Arthur' >= age COLLATE NOCASE
"Arthur" >= Column("age").collating(.nocase)
@@ -2719,7 +2659,6 @@ Column("name").collating(.nocase) >= "Arthur"
An SQL expression that compares two expressions with the >= SQL operator.
-
// width >= height
Column("width") >= Column("height")
@@ -2764,7 +2703,6 @@ Column("width") >= Column("height")
An SQL arithmetic multiplication.
-
// width * 2
Column("width") * 2
@@ -2798,7 +2736,6 @@ Column("width") * 2
An SQL arithmetic multiplication.
-
// 2 * width
2 * Column("width")
@@ -2832,7 +2769,6 @@ Column("width") * 2
An SQL arithmetic multiplication.
-
// width * height
Column("width") * Column("height")
@@ -2866,7 +2802,6 @@ Column("width") * Column("height")
An SQL arithmetic division.
-
// width / 2
Column("width") / 2
@@ -2900,7 +2835,6 @@ Column("width") / 2
An SQL arithmetic division.
-
// 2 / width
2 / Column("width")
@@ -2934,7 +2868,6 @@ Column("width") / 2
An SQL arithmetic division.
-
// width / height
Column("width") / Column("height")
@@ -2968,7 +2901,6 @@ Column("width") / Column("height")
An SQL arithmetic addition.
-
// width + 2
Column("width") + 2
@@ -3002,7 +2934,6 @@ Column("width") + 2
An SQL arithmetic addition.
-
// 2 + width
2 + Column("width")
@@ -3036,7 +2967,6 @@ Column("width") + 2
An SQL arithmetic addition.
-
// width + height
Column("width") + Column("height")
@@ -3070,7 +3000,6 @@ Column("width") + Column("height")
A negated SQL arithmetic expression.
-