Skip to content

Commit 3014ddb

Browse files
committed
Enhance Documentation
1 parent 85b2e11 commit 3014ddb

File tree

6 files changed

+24
-23
lines changed

6 files changed

+24
-23
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Sharing a Database in an App Group Container
22
============================================
33

4-
This guide [has moved](SharingADatabase.md).
4+
This guide [has moved](https://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/databasesharing).

GRDB/Core/Database.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ let SQLITE_TRANSIENT = unsafeBitCast(OpaquePointer(bitPattern: -1), to: sqlite3_
2222
/// }
2323
/// ```
2424
///
25-
/// `Database` methods that modify or query the database schema are listed
26-
/// in <doc:DatabaseSchema>.
25+
/// `Database` methods that modify, query, or validate the database schema are
26+
/// listed in <doc:DatabaseSchema>.
2727
///
2828
/// ## Topics
2929
///

GRDB/Documentation.docc/Concurrency.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,5 @@ Types that conform to ``TransactionObserver`` can also use those methods in thei
343343

344344
[demo apps]: https://github.com/groue/GRDB.swift/tree/master/Documentation/DemoApps
345345
[`SQLITE_BUSY`]: https://www.sqlite.org/rescode.html#busy
346-
[Sharing a Database]: SharingADatabase.md
347346
[RxGRDB]: https://github.com/RxSwiftCommunity/RxGRDB
348347
[demo applications]: https://github.com/groue/GRDB.swift/tree/master/Documentation/DemoApps

GRDB/Documentation.docc/SQLSupport.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ SQL is the fundamental language for accessing SQLite databases.
66

77
This section of the documentation focuses on low-level SQLite concepts: the SQL language, prepared statements, database rows and values.
88

9-
If SQL is not your cup of tea, jump to <doc:QueryInterface>.
9+
If SQL is not your cup of tea, jump to <doc:QueryInterface> 🙂
1010

1111
## SQL Support
1212

13-
GRDB has a wide support for SQL. You can execute raw SQL statements:
13+
GRDB has a wide support for SQL.
14+
15+
Once connected with one of the <doc:DatabaseConnections>, you can execute raw SQL statements:
1416

1517
```swift
1618
try dbQueue.write { db in
@@ -21,7 +23,7 @@ try dbQueue.write { db in
2123
}
2224
```
2325

24-
You can build prepared statements and lazily iterate fetched rows with great performances:
26+
Build prepared ``Statement`` and lazily iterate fetched rows with an efficient and fast ``DatabaseCursor``:
2527

2628
```swift
2729
try dbQueue.read { db in
@@ -35,7 +37,7 @@ try dbQueue.read { db in
3537
}
3638
```
3739

38-
And you can leverage ``SQLRequest`` and ``FetchableRecord`` for defining streamlined apis with powerful SQL interpolation features:
40+
Leverage ``SQLRequest`` and ``FetchableRecord`` for defining streamlined apis with powerful SQL interpolation features:
3941

4042
```swift
4143
struct Player: Decodable {

GRDB/Record/MutablePersistableRecord+Update.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ extension MutablePersistableRecord {
130130

131131
/// If the record has any difference from the other record, executes an
132132
/// `UPDATE` statement so that those differences and only those differences
133-
/// are saved in the database.
133+
/// are updated in the database.
134134
///
135135
/// For example:
136136
///
@@ -174,7 +174,7 @@ extension MutablePersistableRecord {
174174

175175
/// Modifies the record according to the provided `modify` closure, and
176176
/// executes an `UPDATE` statement that updates the modified columns, if and
177-
/// only the record was modified.
177+
/// only if the record was modified.
178178
///
179179
/// For example:
180180
///
@@ -273,8 +273,8 @@ extension MutablePersistableRecord {
273273

274274
/// Modifies the record according to the provided `modify` closure, and
275275
/// executes an `UPDATE RETURNING` statement that updates the modified
276-
/// columns, if and only the record was modified. The method returns a new
277-
/// record built from the updated row.
276+
/// columns, if and only if the record was modified. The method returns a
277+
/// new record built from the updated row.
278278
///
279279
/// - parameter db: A database connection.
280280
/// - parameter conflictResolution: A policy for conflict resolution. If
@@ -300,8 +300,8 @@ extension MutablePersistableRecord {
300300

301301
/// Modifies the record according to the provided `modify` closure, and
302302
/// executes an `UPDATE RETURNING` statement that updates the modified
303-
/// columns, if and only the record was modified. The method returns a new
304-
/// record built from the updated row.
303+
/// columns, if and only if the record was modified. The method returns a
304+
/// new record built from the updated row.
305305
///
306306
/// - parameter db: A database connection.
307307
/// - parameter conflictResolution: A policy for conflict resolution. If
@@ -484,8 +484,8 @@ extension MutablePersistableRecord {
484484

485485
/// Modifies the record according to the provided `modify` closure, and
486486
/// executes an `UPDATE RETURNING` statement that updates the modified
487-
/// columns, if and only the record was modified. The method returns a new
488-
/// record built from the updated row.
487+
/// columns, if and only if the record was modified. The method returns a
488+
/// new record built from the updated row.
489489
///
490490
/// - parameter db: A database connection.
491491
/// - parameter conflictResolution: A policy for conflict resolution. If
@@ -571,8 +571,8 @@ extension MutablePersistableRecord {
571571

572572
/// Modifies the record according to the provided `modify` closure, and
573573
/// executes an `UPDATE RETURNING` statement that updates the modified
574-
/// columns, if and only the record was modified. The method returns a new
575-
/// record built from the updated row.
574+
/// columns, if and only if the record was modified. The method returns a
575+
/// new record built from the updated row.
576576
///
577577
/// - parameter db: A database connection.
578578
/// - parameter conflictResolution: A policy for conflict resolution. If
@@ -599,8 +599,8 @@ extension MutablePersistableRecord {
599599

600600
/// Modifies the record according to the provided `modify` closure, and
601601
/// executes an `UPDATE RETURNING` statement that updates the modified
602-
/// columns, if and only the record was modified. The method returns a new
603-
/// record built from the updated row.
602+
/// columns, if and only if the record was modified. The method returns a
603+
/// new record built from the updated row.
604604
///
605605
/// - parameter db: A database connection.
606606
/// - parameter conflictResolution: A policy for conflict resolution. If
@@ -787,8 +787,8 @@ extension MutablePersistableRecord {
787787

788788
/// Modifies the record according to the provided `modify` closure, and
789789
/// executes an `UPDATE RETURNING` statement that updates the modified
790-
/// columns, if and only the record was modified. The method returns a new
791-
/// record built from the updated row.
790+
/// columns, if and only if the record was modified. The method returns a
791+
/// new record built from the updated row.
792792
///
793793
/// - parameter db: A database connection.
794794
/// - parameter conflictResolution: A policy for conflict resolution. If

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8815,7 +8815,7 @@ This chapter was renamed to [Embedding SQL in Query Interface Requests].
88158815
[Combine Support]: Documentation/Combine.md
88168816
[Concurrency]: https://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/concurrency
88178817
[Demo Applications]: Documentation/DemoApps
8818-
[Sharing a Database]: Documentation/SharingADatabase.md
8818+
[Sharing a Database]: https://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/databasesharing
88198819
[FAQ]: #faq
88208820
[Database Observation]: #database-changes-observation
88218821
[SQLRequest]: https://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/sqlrequest

0 commit comments

Comments
 (0)